Skip to content

Commit b26abba

Browse files
committed
Feedback
1 parent 2e58071 commit b26abba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Grpc.Net.ClientFactory/GrpcClientServiceExtensions.cs

+2-2
Original file line numberDiff line numberDiff 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 =>

0 commit comments

Comments
 (0)