Skip to content

Instantly share code, notes, and snippets.

@fzankl
Created January 24, 2021 09:21
Show Gist options
  • Save fzankl/37ab512c90af18e4d4959c0c642c6d4a to your computer and use it in GitHub Desktop.
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