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