Created
January 24, 2021 09:21
-
-
Save fzankl/37ab512c90af18e4d4959c0c642c6d4a to your computer and use it in GitHub Desktop.
gRPC client factory in ASP.NET Core
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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