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)
393
Assert.Throws<NotSupportedException>(() => builder.WebHost.
UseSetting
(WebHostDefaults.ApplicationKey, nameof(WebApplicationTests)));
394
Assert.Throws<NotSupportedException>(() => builder.WebHost.
UseSetting
(WebHostDefaults.EnvironmentKey, envName));
395
Assert.Throws<NotSupportedException>(() => builder.WebHost.
UseSetting
(WebHostDefaults.ContentRootKey, contentRoot));
396
Assert.Throws<NotSupportedException>(() => builder.WebHost.
UseSetting
(WebHostDefaults.WebRootKey, webRoot));
397
Assert.Throws<NotSupportedException>(() => builder.WebHost.
UseSetting
(WebHostDefaults.HostingStartupAssembliesKey, "hosting"));
398
Assert.Throws<NotSupportedException>(() => builder.WebHost.
UseSetting
(WebHostDefaults.HostingStartupExcludeAssembliesKey, "hostingexclude"));
1098
builder.WebHost.
UseSetting
("A", "value");
1099
builder.WebHost.
UseSetting
("B", "another");