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

Update Grpc.Core.Api to 2.45.0 and support write cancellation #41525

Merged
merged 4 commits into from
May 8, 2022

Conversation

JamesNK
Copy link
Member

@JamesNK JamesNK commented May 5, 2022

Updates gRPC to 2.45.0, removes nullable workarounds and adds support for WriteAsync cancellation.

Addresses grpc/grpc-dotnet#1583

@JamesNK JamesNK added the area-grpc Includes: GRPC wire-up, templates label May 5, 2022
@JamesNK JamesNK requested review from captainsafia, a team, dougbu and wtgodbe as code owners May 5, 2022 07:01
@JamesNK JamesNK force-pushed the jamesnk/grpc245 branch from 9f628c9 to 86da11a Compare May 5, 2022 22:13
@@ -44,6 +44,6 @@ protected override async Task HandleCallAsyncCore(HttpContext httpContext, JsonT

serverCallContext.EnsureResponseHeaders();

await JsonRequestHelpers.SendMessage(serverCallContext, SerializerOptions, response);
await JsonRequestHelpers.SendMessage(serverCallContext, SerializerOptions, response, CancellationToken.None);
Copy link
Member

Choose a reason for hiding this comment

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

httpContext.RequestAborted?

Copy link
Member Author

Choose a reason for hiding this comment

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

All the async operations are on the HttpContext and friends. That cancellation token is implicitly used.

@JamesNK JamesNK changed the title Update Grpc.Core.Api version to 2.45.0 and support write cancellation Update Grpc.Core.Api to 2.45.0 and support write cancellation May 8, 2022
@JamesNK JamesNK enabled auto-merge (squash) May 8, 2022 08:56
@JamesNK JamesNK merged commit 8b601c3 into main May 8, 2022
@JamesNK JamesNK deleted the jamesnk/grpc245 branch May 8, 2022 10:18
@ghost ghost added this to the 7.0-preview5 milestone May 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-grpc Includes: GRPC wire-up, templates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants