3 instantiations of WebHostOptions
Microsoft.AspNetCore.Hosting (3)
GenericHost\GenericWebHostBuilder.cs (1)
122
var webHostOptions = new
WebHostOptions
(_config);
GenericHost\WebHostBuilderBase.cs (1)
79
var options = new
WebHostOptions
(context.Configuration, fallbackConfiguration: _config, environment: context.HostingEnvironment);
WebHostBuilder.cs (1)
220
_options = new
WebHostOptions
(_config);
23 references to WebHostOptions
Microsoft.AspNetCore.Hosting (23)
GenericHost\GenericWebHostBuilder.cs (8)
55
var
webHostOptions = (
WebHostOptions
)context.Properties[typeof(
WebHostOptions
)];
98
private void ScanAssemblyAndRegisterStartup(HostBuilderContext context, IServiceCollection services, WebHostBuilderContext webhostContext,
WebHostOptions
webHostOptions)
122
var
webHostOptions = new WebHostOptions(_config);
218
var
webHostOptions = (
WebHostOptions
)context.Properties[typeof(
WebHostOptions
)];
GenericHost\GenericWebHostServiceOptions.cs (1)
12
public
WebHostOptions
WebHostOptions { get; set; } = default!; // Always set when options resolved by DI
GenericHost\SlimWebHostBuilder.cs (3)
31
var
webHostOptions = (
WebHostOptions
)context.Properties[typeof(
WebHostOptions
)];
GenericHost\WebHostBuilderBase.cs (2)
79
var
options = new WebHostOptions(context.Configuration, fallbackConfiguration: _config, environment: context.HostingEnvironment);
87
context.Properties[typeof(
WebHostOptions
)] = options;
Internal\HostingEnvironmentExtensions.cs (2)
12
internal static void Initialize(this IHostingEnvironment hostingEnvironment, string contentRootPath,
WebHostOptions
options)
63
WebHostOptions
options,
Internal\WebHost.cs (3)
32
private readonly
WebHostOptions
_options;
44
internal
WebHostOptions
Options => _options;
51
WebHostOptions
options,
WebHostBuilder.cs (1)
29
private
WebHostOptions
? _options;
WebHostExtensions.cs (3)
92
var shutdownMessage = host.Services.GetRequiredService<
WebHostOptions
>().SuppressStatusMessages ? string.Empty : "Application is shutting down...";
115
var
options = host.Services.GetRequiredService<
WebHostOptions
>();