Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: move channels into impl classes #2794

Merged
merged 4 commits into from
Dec 11, 2023
Merged

Conversation

mxschmitt
Copy link
Member

No description provided.

@@ -136,4 +136,15 @@ private void UpdateEventSubscription(string eventName, bool enabled)
}),
true).IgnoreException();
}

internal Task<JsonElement?> SendMessageToServerAsync(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need this specialization of the template?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some legacy, let me try to follow-up with that.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Turns out we have it twice:

a) SendMessageToServerAsync without the generic gives you a JsonElement? back.
b) SendMessageToServerAsync with a generic which internally deserialises the JSON for you into some specific data structure T

So no need to follow-up!

@mxschmitt mxschmitt merged commit ba2e378 into main Dec 11, 2023
15 checks passed
@mxschmitt mxschmitt deleted the move-channels-into-impl branch December 11, 2023 16:44
@maw136
Copy link
Contributor

maw136 commented Jan 17, 2024

This broke implementation:
{ "chromiumSandbox", options.ChromiumSandbox }, { "slowMo", options.ChromiumSandbox },

@mxschmitt
Copy link
Member Author

Thanks for filing, I created #2828 as a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants