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