Skip to content

chore: move channels into impl classes#2794

Merged
mxschmitt merged 4 commits into
mainfrom
move-channels-into-impl
Dec 11, 2023
Merged

chore: move channels into impl classes#2794
mxschmitt merged 4 commits into
mainfrom
move-channels-into-impl

Conversation

@mxschmitt
Copy link
Copy Markdown
Contributor

No description provided.

true).IgnoreException();
}

internal Task<JsonElement?> SendMessageToServerAsync(
Copy link
Copy Markdown
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
Copy Markdown
Contributor 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
Copy Markdown
Contributor 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
@mxschmitt mxschmitt deleted the move-channels-into-impl branch December 11, 2023 16:44
@maw136
Copy link
Copy Markdown
Contributor

maw136 commented Jan 17, 2024

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

@mxschmitt
Copy link
Copy Markdown
Contributor 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.

3 participants