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