20 references to HostOptions
Microsoft.Extensions.Hosting (15)
HostBuilder.cs (2)
326
appServices.GetRequiredService<IOptions<
HostOptions
>>());
328
services.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>
120
public 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>
132
public static IHostBuilder ConfigureHostOptions(this IHostBuilder hostBuilder, Action<
HostOptions
> configureOptions)
Internal\ConsoleLifetime.cs (3)
34
public ConsoleLifetime(IOptions<ConsoleLifetimeOptions> options, IHostEnvironment environment, IHostApplicationLifetime applicationLifetime, IOptions<
HostOptions
> hostOptions)
46
public ConsoleLifetime(IOptions<ConsoleLifetimeOptions> options, IHostEnvironment environment, IHostApplicationLifetime applicationLifetime, IOptions<
HostOptions
> hostOptions, ILoggerFactory loggerFactory)
67
private
HostOptions
HostOptions { get; }
Internal\Host.cs (3)
26
private readonly
HostOptions
_options;
40
IOptions<
HostOptions
> options)
453
public
HostOptions
Options => host._options;
Microsoft.Extensions.Hosting.WindowsServices (3)
WindowsServiceLifetime.cs (3)
23
private readonly
HostOptions
_hostOptions;
33
public WindowsServiceLifetime(IHostEnvironment environment, IHostApplicationLifetime applicationLifetime, ILoggerFactory loggerFactory, IOptions<
HostOptions
> optionsAccessor)
46
public 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)
112
services.Configure<
HostOptions
>(option =>
Sockets.FunctionalTests (1)
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (1)
112
services.Configure<
HostOptions
>(option =>