5 implementations of UseSetting
Microsoft.AspNetCore (1)
Microsoft.AspNetCore.Hosting (3)
Microsoft.AspNetCore.Hosting.Tests (1)
104 references to UseSetting
AutobahnTestApp (1)
Benchmarks (2)
IIS.Tests (1)
InMemory.FunctionalTests (1)
Microsoft.AspNetCore (5)
Microsoft.AspNetCore.Hosting (4)
Microsoft.AspNetCore.Hosting.Abstractions (11)
HostingAbstractionsWebHostBuilderExtensions.cs (11)
28hostBuilder.UseSetting(setting.Key, setting.Value);
43return hostBuilder.UseSetting(WebHostDefaults.CaptureStartupErrorsKey, captureStartupErrors ? "true" : "false");
58.UseSetting(WebHostDefaults.ApplicationKey, startupAssemblyName)
59.UseSetting(WebHostDefaults.StartupAssemblyKey, startupAssemblyName);
90return hostBuilder.UseSetting(WebHostDefaults.EnvironmentKey, environment);
103return hostBuilder.UseSetting(WebHostDefaults.ContentRootKey, contentRoot);
116return hostBuilder.UseSetting(WebHostDefaults.WebRootKey, webRoot);
129return hostBuilder.UseSetting(WebHostDefaults.ServerUrlsKey, string.Join(';', urls));
141return hostBuilder.UseSetting(WebHostDefaults.PreferHostingUrlsKey, preferHostingUrls ? "true" : "false");
152return hostBuilder.UseSetting(WebHostDefaults.SuppressStatusMessagesKey, suppressStatusMessages ? "true" : "false");
163return hostBuilder.UseSetting(WebHostDefaults.ShutdownTimeoutKey, ((int)timeout.TotalSeconds).ToString(CultureInfo.InvariantCulture));
Microsoft.AspNetCore.Hosting.Tests (17)
WebHostBuilderTests.cs (17)
378.UseSetting("key1", "value1")
491.UseSetting(WebHostDefaults.EnvironmentKey, "EnvA")
492.UseSetting(WebHostDefaults.EnvironmentKey, "EnvB")
517.UseSetting(WebHostDefaults.EnvironmentKey, "EnvA")
544.UseSetting(WebHostDefaults.EnvironmentKey, "EnvB")
890.UseSetting(WebHostDefaults.HostingStartupAssembliesKey, typeof(TestStartupAssembly1.TestHostingStartup1).GetTypeInfo().Assembly.FullName)
910.UseSetting(WebHostDefaults.HostingStartupAssembliesKey, fullName + ";" + name)
927.UseSetting(WebHostDefaults.HostingStartupAssembliesKey, typeof(TestStartupAssembly1.TestHostingStartup1).GetTypeInfo().Assembly.FullName)
947.UseSetting(WebHostDefaults.HostingStartupAssembliesKey, typeof(WebHostBuilderTests).GetTypeInfo().Assembly.FullName)
948.UseSetting(WebHostDefaults.ApplicationKey, startupAssemblyName)
1047.UseSetting(WebHostDefaults.HostingStartupAssembliesKey, typeof(TestStartupAssembly1.TestHostingStartup1).GetTypeInfo().Assembly.FullName)
1048.UseSetting(WebHostDefaults.HostingStartupExcludeAssembliesKey, typeof(TestStartupAssembly1.TestHostingStartup1).GetTypeInfo().Assembly.FullName)
1165.UseSetting(WebHostDefaults.PreventHostingStartupKey, "true")
1181.UseSetting(WebHostDefaults.HostingStartupAssembliesKey, "SomeBogusName")
1202.UseSetting(WebHostDefaults.HostingStartupAssembliesKey, "SomeBogusName")
1677builder.UseSetting("testhostingstartup", "0")
1678.UseSetting("testhostingstartup_chain", builder.GetSetting("testhostingstartup_chain") + "0")
Microsoft.AspNetCore.HttpsPolicy.Tests (1)
Microsoft.AspNetCore.Mvc.FunctionalTests (7)
Microsoft.AspNetCore.Server.IISIntegration (2)
Microsoft.AspNetCore.Server.IISIntegration.Tests (38)
IISMiddlewareTests.cs (35)
33.UseSetting("PORT", "12345")
34.UseSetting("APPL_PATH", "/")
70.UseSetting("TOKEN", "TestToken")
71.UseSetting("PORT", "12345")
72.UseSetting("APPL_PATH", "/")
111.UseSetting("TOKEN", "TestToken")
112.UseSetting("PORT", "12345")
113.UseSetting("APPL_PATH", pathBase)
170.UseSetting("TOKEN", "TestToken")
171.UseSetting("PORT", "12345")
172.UseSetting("APPL_PATH", "/")
215.UseSetting("TOKEN", "TestToken")
216.UseSetting("PORT", "12345")
217.UseSetting("APPL_PATH", "/")
260.UseSetting("TOKEN", "TestToken")
261.UseSetting("PORT", "12345")
262.UseSetting("APPL_PATH", "/")
300.UseSetting("TOKEN", "TestToken")
301.UseSetting("PORT", "12345")
302.UseSetting("APPL_PATH", "/")
333.UseSetting("TOKEN", "TestToken")
334.UseSetting("PORT", "12345")
335.UseSetting("APPL_PATH", "/pathBase")
362.UseSetting("TOKEN", "TestToken")
363.UseSetting("PORT", "12345")
364.UseSetting("APPL_PATH", "/pathbase")
400.UseSetting("TOKEN", "TestToken")
401.UseSetting("PORT", "12345")
402.UseSetting("APPL_PATH", "/")
442.UseSetting("TOKEN", "TestToken")
443.UseSetting("PORT", "12345")
444.UseSetting("APPL_PATH", "/")
499.UseSetting("TOKEN", "TestToken")
500.UseSetting("PORT", "12345")
501.UseSetting("APPL_PATH", "/")
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
Microsoft.AspNetCore.Server.Kestrel.Tests (2)
Microsoft.AspNetCore.Tests (1)
SignalRSamples (1)
SocialWeather (1)
Sockets.BindTests (2)
Sockets.FunctionalTests (2)
TestStartupAssembly1 (3)