Skip to content

Instantly share code, notes, and snippets.

@fzankl
Created January 24, 2021 09:21
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save fzankl/37ab512c90af18e4d4959c0c642c6d4a to your computer and use it in GitHub Desktop.
gRPC client factory in ASP.NET Core
public void ConfigureServices(IServiceCollection services)
{
services.AddGrpcClient<FooService.FooServiceClient>(options =>
{
options.Address = new Uri("https://localhost:5001");
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment