-
Notifications
You must be signed in to change notification settings - Fork 8
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
feat: support .NET Framework 4.61+ using gRPC-Web #426
Conversation
ef8ecac
to
4e1b2ad
Compare
We already test in build and merge to main branch.
Test on net461 on windows, otherwise use linux.
Opening for review. I will build a test app and manually run on Windows Server 2016. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is awesome! thanks for figuring it out. I just had a few minor questions.
Because .NET Framework does not support gRPC over HTTP/2, we fall back to using gRPC for those older versions. To do this we: 1. Add another target framework for the library, `net461`. This is the lowest .NET Framework version also supported by `netstandard2.0`. 2. Conditional on a `net461` build, link the gRPC-Web client dependency. 3. Conditional on a `net461` build, use a gRPC-Web `HttpHandler` for the control and data gRPC channels. 4. Update the test projects to exercise the `net461` build as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because .NET Framework does not support gRPC over HTTP/2, we fall back
to using gRPC for those older versions. To do this we:
Add another target framework for the library,
net461
. This is thelowest .NET Framework version also supported by
netstandard2.0
.Conditional on a
net461
build, link the gRPC-Web clientdependency.
Conditional on a
net461
build, use a gRPC-WebHttpHandler
forthe control and data gRPC channels.
Update the test projects to exercise the
net461
build as well.closes: https://github.com/momentohq/dev-eco-issue-tracker/issues/317