20 references to HostOptions
Microsoft.Extensions.Hosting (15)
HostBuilder.cs (2)
326appServices.GetRequiredService<IOptions<HostOptions>>()); 328services.AddOptions().Configure<HostOptions>(options => { options.Initialize(hostBuilderContext.Configuration); });
HostingHostBuilderExtensions.cs (7)
115/// Adds a delegate for configuring the <see cref="HostOptions"/> of the <see cref="IHost"/>. 118/// <param name="configureOptions">The delegate for configuring the <see cref="HostOptions"/>.</param> 120public static IHostBuilder ConfigureHostOptions(this IHostBuilder hostBuilder, Action<HostBuilderContext, HostOptions> configureOptions) 123(context, collection) => collection.Configure<HostOptions>(options => configureOptions(context, options))); 127/// Adds a delegate for configuring the <see cref="HostOptions"/> of the <see cref="IHost"/>. 130/// <param name="configureOptions">The delegate for configuring the <see cref="HostOptions"/>.</param> 132public static IHostBuilder ConfigureHostOptions(this IHostBuilder hostBuilder, Action<HostOptions> configureOptions)
Internal\ConsoleLifetime.cs (3)
34public ConsoleLifetime(IOptions<ConsoleLifetimeOptions> options, IHostEnvironment environment, IHostApplicationLifetime applicationLifetime, IOptions<HostOptions> hostOptions) 46public ConsoleLifetime(IOptions<ConsoleLifetimeOptions> options, IHostEnvironment environment, IHostApplicationLifetime applicationLifetime, IOptions<HostOptions> hostOptions, ILoggerFactory loggerFactory) 67private HostOptions HostOptions { get; }
Internal\Host.cs (3)
26private readonly HostOptions _options; 40IOptions<HostOptions> options) 453public HostOptions Options => host._options;
Microsoft.Extensions.Hosting.WindowsServices (3)
WindowsServiceLifetime.cs (3)
23private readonly HostOptions _hostOptions; 33public WindowsServiceLifetime(IHostEnvironment environment, IHostApplicationLifetime applicationLifetime, ILoggerFactory loggerFactory, IOptions<HostOptions> optionsAccessor) 46public WindowsServiceLifetime(IHostEnvironment environment, IHostApplicationLifetime applicationLifetime, ILoggerFactory loggerFactory, IOptions<HostOptions> optionsAccessor, IOptions<WindowsServiceLifetimeOptions> windowsServiceOptionsAccessor)
Sockets.BindTests (1)
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (1)
112services.Configure<HostOptions>(option =>
Sockets.FunctionalTests (1)
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (1)
112services.Configure<HostOptions>(option =>