Grpc.Net.ClientFactory .NETStandard2.0 compatibility
See original GitHub issueIs your feature request related to a problem? Please describe.
I hava an UWP project which uses Grpc.Net.Client.Web 2.36.0. I see, that this version supports .NETStandard2.0, but the
Grpc.Net.ClientFactory only supports .NETStandard2.1 and net5.0.
The UWP doesn’t support 2.1 or .net5 yet.
My problem is I would like to use interceptors for the client side, according to this code:
services
.AddGrpcClient<Greeter.GreeterClient>(o =>
{
o.Address = new Uri("https://localhost:5001");
})
.AddInterceptor(() => new SomeInterceptor())
Describe the solution you’d like
Grpc.Net.ClientFactory .NETStandard2.0 compatibility
Describe alternatives you’ve considered
Closely enough to me that add multiple interceptor with somewhere on these lines:
CallCredentials callCredentials = CallCredentials.FromInterceptor(CHttpClientService.AsyncAuthInterceptor);
return GrpcChannel.ForAddress(Settings.CSettings.ServerAddress, new GrpcChannelOptions
{
HttpHandler = new GrpcWebHandler(new CHttpClientService().PrepareHttpMessageHandler()),
Credentials = ChannelCredentials.Create(new SslCredentials(), callCredentials),
});
AsyncAuthInterceptor is not good for me, because it is called only before the function call.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Use gRPC client with .NET Standard 2.0
Learn how to use the .NET gRPC client in apps and libraries that support .NET Standard 2.0.
Read more >Grpc.Net.ClientFactory 2.55.0
Provides a central location for configuring logical gRPC client instances; Manages the lifetime of the underlying HttpClientMessageHandler; Automatic ...
Read more >Grpc.Net.ClientFactory.csproj
Search code, repositories, users, issues, pull requests... · Provide feedback · Saved searches · Grpc.Net.ClientFactory.csproj ...
Read more >gRPC for ASP.NET Core 3.0
gRPC in . NET Core 3.0 has first class support by the framework just like using a MVC Controller, SignalR Hub or Razor...
Read more >Migrating WCF to gRPC using .NET Core - The Seeley Coder
Let's look at migrating WCF to gRPC using .NET Core while still maintaining backwards compatibility. Let's branch the code from Using WCF ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
netstandard2.0 client factory will be in the next release.
You can add interceptors like this to a channel without client factory:
The extension method is in
Grpc.Core.Interceptors.ChannelExtensions
.hope it won’t be long. so sad.