File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Grpc.Net.ClientFactory Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -310,7 +310,7 @@ private static IHttpClientBuilder AddGrpcHttpClient<
310310 builder . Services . AddTransient < TClient > ( s =>
311311 {
312312 var clientFactory = s . GetRequiredService < GrpcClientFactory > ( ) ;
313- return clientFactory . CreateClient < TClient > ( builder . Name ) ;
313+ return clientFactory . CreateClient < TClient > ( name ) ;
314314 } ) ;
315315
316316 // Insert primary handler before other configuration so there is the opportunity to override it.
@@ -343,7 +343,7 @@ private static IHttpClientBuilder AddGrpcHttpClient<
343343 services . Insert ( 0 , configurePrimaryHandler ) ;
344344
345345 // Some platforms don't have a built-in handler that supports gRPC.
346- // Validate that a handler was set after all configuration has run.
346+ // Validate that a handler was set by the app to after all configuration has run.
347347 services . PostConfigure < HttpClientFactoryOptions > ( name , options =>
348348 {
349349 options . HttpMessageHandlerBuilderActions . Add ( builder =>
You can’t perform that action at this time.
0 commit comments