1 implementation of Name
Microsoft.Extensions.Http (1)
DependencyInjection\DefaultHttpClientBuilder.cs (1)
21public string Name { get; }
43 references to Name
Microsoft.Extensions.Http (30)
DependencyInjection\HttpClientBuilderExtensions.cs (27)
33builder.Services.Configure<HttpClientFactoryOptions>(builder.Name, options => options.HttpClientActions.Add(configureClient)); 55return new ConfigureNamedOptions<HttpClientFactoryOptions>(builder.Name, (options) => 79builder.Services.Configure<HttpClientFactoryOptions>(builder.Name, options => 108builder.Services.Configure<HttpClientFactoryOptions>(builder.Name, options => 135builder.Services.Configure<HttpClientFactoryOptions>(builder.Name, options => 159builder.Services.Configure<HttpClientFactoryOptions>(builder.Name, options => 189builder.Services.Configure<HttpClientFactoryOptions>(builder.Name, options => 217builder.Services.Configure<HttpClientFactoryOptions>(builder.Name, options => 243builder.Services.Configure<HttpClientFactoryOptions>(builder.Name, options => 264builder.Services.Configure<HttpClientFactoryOptions>(builder.Name, options => options.HttpMessageHandlerBuilderActions.Add(configureBuilder)); 290builder.Services.Configure<HttpClientFactoryOptions>(builder.Name, options => 329configureBuilder(new DefaultSocketsHttpHandlerBuilder(builder.Services, builder.Name)); 373ReserveClient(builder, typeof(TClient), builder.Name, validateSingleType); 385HttpClient httpClient = httpClientFactory.CreateClient(builder.Name); 437ReserveClient(builder, typeof(TClient), builder.Name, validateSingleType); 449HttpClient httpClient = httpClientFactory.CreateClient(builder.Name); 488ReserveClient(builder, typeof(TClient), builder.Name, validateSingleType); 493HttpClient httpClient = httpClientFactory.CreateClient(builder.Name); 537ReserveClient(builder, typeof(TClient), builder.Name, validateSingleType); 542HttpClient httpClient = httpClientFactory.CreateClient(builder.Name); 563builder.Services.Configure<HttpClientFactoryOptions>(builder.Name, options => 582builder.Services.Configure<HttpClientFactoryOptions>(builder.Name, options => 625builder.Services.Configure<HttpClientFactoryOptions>(builder.Name, options => options.HandlerLifetime = handlerLifetime); 641builder.Services.Configure<HttpClientFactoryOptions>(builder.Name, options => 691string? name = builder.Name; 733string? name = builder.Name; 757if (builder.Name is null)
DependencyInjection\HttpClientBuilderExtensions.Logging.cs (3)
51builder.Services.Configure<HttpClientFactoryOptions>(builder.Name, options => 125builder.Services.Configure<HttpClientFactoryOptions>(builder.Name, options => 143builder.Services.Configure<HttpClientFactoryOptions>(builder.Name, options => options.SuppressDefaultLogging = false);
Microsoft.Extensions.Http.Diagnostics (5)
Logging\HttpClientLoggingHttpClientBuilderExtensions.cs (5)
83.AddOptionsWithValidateOnStart<LoggingOptions, LoggingOptionsValidator>(builder.Name); 92builder.Services.TryAddKeyedSingleton<HttpClientLogger>(builder.Name); 93builder.Services.TryAddKeyedSingleton<IHttpRequestReader, HttpRequestReader>(builder.Name); 94builder.Services.TryAddKeyedSingleton<IHttpHeadersReader, HttpHeadersReader>(builder.Name); 99serviceProvider => serviceProvider.GetRequiredKeyedService<HttpClientLogger>(builder.Name),
Microsoft.Extensions.Http.Resilience (7)
Hedging\ResilienceHttpClientBuilderExtensions.Hedging.cs (3)
75var optionsName = builder.Name; 76var routingBuilder = new RoutingStrategyBuilder(builder.Name, builder.Services); 146return new StandardHedgingHandlerBuilder(builder.Name, builder.Services, routingBuilder);
Resilience\ResilienceHttpClientBuilderExtensions.Resilience.cs (3)
30/// The final pipeline name is combination of <see cref="IHttpClientBuilder.Name"/> and <paramref name="pipelineName"/>. 53/// The final pipeline name is combination of <see cref="IHttpClientBuilder.Name"/> and <paramref name="pipelineName"/>. 115var pipelineName = PipelineNameHelper.GetName(builder.Name, name);
Resilience\ResilienceHttpClientBuilderExtensions.StandardResilience.cs (1)
70var optionsName = PipelineNameHelper.GetName(builder.Name, StandardIdentifier);
Microsoft.Extensions.ServiceDiscovery (1)
ServiceDiscoveryHttpClientBuilderExtensions.cs (1)
37AddDisableGrpcLoadBalancingFilter(httpClientBuilder.Services, httpClientBuilder.Name);