Implemented interface member:
method
UseSetting
Microsoft.AspNetCore.Hosting.IWebHostBuilder.UseSetting(System.String, System.String)
11 references to UseSetting
Microsoft.AspNetCore.StaticAssets.Tests (3)
StaticAssetsIntegrationTests.cs (3)
309
builder.WebHost.
UseSetting
(StaticAssetDevelopmentRuntimeHandler.ReloadStaticAssetsAtRuntimeKey, "true");
364
builder.WebHost.
UseSetting
(StaticAssetDevelopmentRuntimeHandler.ReloadStaticAssetsAtRuntimeKey, "true");
417
builder.WebHost.
UseSetting
(StaticAssetDevelopmentRuntimeHandler.ReloadStaticAssetsAtRuntimeKey, "true");
Microsoft.AspNetCore.Tests (8)
WebApplicationTests.cs (8)
395
Assert.Throws<NotSupportedException>(() => builder.WebHost.
UseSetting
(WebHostDefaults.ApplicationKey, nameof(WebApplicationTests)));
396
Assert.Throws<NotSupportedException>(() => builder.WebHost.
UseSetting
(WebHostDefaults.EnvironmentKey, envName));
397
Assert.Throws<NotSupportedException>(() => builder.WebHost.
UseSetting
(WebHostDefaults.ContentRootKey, contentRoot));
398
Assert.Throws<NotSupportedException>(() => builder.WebHost.
UseSetting
(WebHostDefaults.WebRootKey, webRoot));
399
Assert.Throws<NotSupportedException>(() => builder.WebHost.
UseSetting
(WebHostDefaults.HostingStartupAssembliesKey, "hosting"));
400
Assert.Throws<NotSupportedException>(() => builder.WebHost.
UseSetting
(WebHostDefaults.HostingStartupExcludeAssembliesKey, "hostingexclude"));
1100
builder.WebHost.
UseSetting
("A", "value");
1101
builder.WebHost.
UseSetting
("B", "another");