41 references to HttpClientFactoryOptions
Microsoft.Extensions.Http (39)
DefaultHttpClientFactory.cs (4)
24
private readonly IOptionsMonitor<
HttpClientFactoryOptions
> _optionsMonitor;
65
IOptionsMonitor<
HttpClientFactoryOptions
> optionsMonitor,
110
HttpClientFactoryOptions
options = _optionsMonitor.Get(name);
136
HttpClientFactoryOptions
options = _optionsMonitor.Get(name);
DefaultHttpMessageHandlerBuilder.cs (2)
71
if (Services.GetService<IOptionsMonitor<
HttpClientFactoryOptions
>>() is IOptionsMonitor<
HttpClientFactoryOptions
> optionsMonitor)
DependencyInjection\DefaultHttpClientBuilderServiceCollection.cs (1)
27
if (item.ServiceType != typeof(IConfigureOptions<
HttpClientFactoryOptions
>))
DependencyInjection\HttpClientBuilderExtensions.cs (18)
33
builder.Services.Configure<
HttpClientFactoryOptions
>(builder.Name, options => options.HttpClientActions.Add(configureClient));
53
builder.Services.AddTransient<IConfigureOptions<
HttpClientFactoryOptions
>>(services =>
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 =>
563
builder.Services.Configure<
HttpClientFactoryOptions
>(builder.Name, options =>
582
builder.Services.Configure<
HttpClientFactoryOptions
>(builder.Name, options =>
620
if (handlerLifetime != Timeout.InfiniteTimeSpan && handlerLifetime <
HttpClientFactoryOptions
.MinimumHandlerLifetime)
625
builder.Services.Configure<
HttpClientFactoryOptions
>(builder.Name, options => options.HandlerLifetime = handlerLifetime);
641
builder.Services.Configure<
HttpClientFactoryOptions
>(builder.Name, options =>
660
/// means that the client will continue reusing the same <see cref="HttpMessageHandler"/> instance for the duration of <see cref="
HttpClientFactoryOptions
.HandlerLifetime"/>,
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);
DependencyInjection\SocketsHttpHandlerBuilderExtensions.cs (1)
30
builder.Services.Configure<
HttpClientFactoryOptions
>(builder.Name, options =>
HttpMessageHandlerBuilder.cs (1)
50
/// <see cref="
HttpClientFactoryOptions
.SuppressHandlerScope"/>. If <c>true</c> this
Logging\LoggingHttpMessageHandler.cs (3)
20
private readonly
HttpClientFactoryOptions
? _options;
38
/// <param name="options">The <see cref="
HttpClientFactoryOptions
"/> used to configure the <see cref="LoggingHttpMessageHandler"/> instance.</param>
40
public LoggingHttpMessageHandler(ILogger logger,
HttpClientFactoryOptions
options)
Logging\LoggingHttpMessageHandlerBuilderFilter.cs (3)
21
private readonly IOptionsMonitor<
HttpClientFactoryOptions
> _optionsMonitor;
23
public LoggingHttpMessageHandlerBuilderFilter(IServiceProvider serviceProvider, IOptionsMonitor<
HttpClientFactoryOptions
> optionsMonitor)
41
HttpClientFactoryOptions
options = _optionsMonitor.Get(builder.Name);
Logging\LoggingScopeHttpMessageHandler.cs (3)
19
private readonly
HttpClientFactoryOptions
? _options;
37
/// <param name="options">The <see cref="
HttpClientFactoryOptions
"/> used to configure the <see cref="LoggingScopeHttpMessageHandler"/> instance.</param>
39
public LoggingScopeHttpMessageHandler(ILogger logger,
HttpClientFactoryOptions
options)
Microsoft.Extensions.Http.Diagnostics (1)
Latency\HttpClientLatencyTelemetryExtensions.cs (1)
38
return services.ConfigureAll<
HttpClientFactoryOptions
>(
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Logging\Internal\HelperExtensions.cs (1)
17
.ConfigureAll<
HttpClientFactoryOptions
>(options =>