8 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);
Microsoft.AspNetCore.Hosting.Tests (5)
HostingEnvironmentExtensionsTests.cs (1)
78
return new
WebHostOptions
(
WebHostBuilderTests.cs (1)
1415
return new
WebHostOptions
(configuration);
WebHostConfigurationsTests.cs (3)
25
var config = new
WebHostOptions
(new ConfigurationBuilder().AddInMemoryCollection(parameters).Build());
40
var config = new
WebHostOptions
(new ConfigurationBuilder().AddInMemoryCollection(parameters).Build());
51
var config = new
WebHostOptions
(new ConfigurationBuilder().AddInMemoryCollection(parameters).Build());
36 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)
91
var shutdownMessage = host.Services.GetRequiredService<
WebHostOptions
>().SuppressStatusMessages ? string.Empty : "Application is shutting down...";
113
var
options = host.Services.GetRequiredService<
WebHostOptions
>();
Microsoft.AspNetCore.Hosting.Tests (13)
HostingEnvironmentExtensionsTests.cs (3)
17
var
webHostOptions = CreateWebHostOptions(
64
var
webHostOptions = CreateWebHostOptions(
76
private
WebHostOptions
CreateWebHostOptions(IConfiguration configuration = null)
WebHostBuilderTests.cs (7)
33
var
options = CreateWebHostOptions(host.Services.GetRequiredService<IConfiguration>());
498
var
options = CreateWebHostOptions(host.Services.GetRequiredService<IConfiguration>());
524
var
options = CreateWebHostOptions(host.Services.GetRequiredService<IConfiguration>());
550
var
options = CreateWebHostOptions(host.Services.GetRequiredService<IConfiguration>());
585
var
options = CreateWebHostOptions(host.Services.GetRequiredService<IConfiguration>());
1281
var
options = CreateWebHostOptions(host.Services.GetRequiredService<IConfiguration>());
1413
private
WebHostOptions
CreateWebHostOptions(IConfiguration configuration)
WebHostConfigurationsTests.cs (3)
25
var
config = new WebHostOptions(new ConfigurationBuilder().AddInMemoryCollection(parameters).Build());
40
var
config = new WebHostOptions(new ConfigurationBuilder().AddInMemoryCollection(parameters).Build());
51
var
config = new WebHostOptions(new ConfigurationBuilder().AddInMemoryCollection(parameters).Build());