134 instantiations of WebHostBuilder
ApiExplorerWebSite (1)
Startup.cs (1)
55new WebHostBuilder()
ApplicationModelWebSite (1)
Startup.cs (1)
44new WebHostBuilder()
Aspire.Dashboard.Tests (1)
Integration\MockOpenIdAuthority.cs (1)
26var webHost = new WebHostBuilder()
BasicWebSite (1)
Program.cs (1)
13new WebHostBuilder()
ControllersFromServicesWebSite (1)
Startup.cs (1)
71new WebHostBuilder()
CorsWebSite (1)
Program.cs (1)
17new WebHostBuilder()
ErrorPageMiddlewareWebSite (1)
Startup.cs (1)
34new WebHostBuilder()
FilesWebSite (1)
Startup.cs (1)
33new WebHostBuilder()
FormatterWebSite (1)
Program.cs (1)
17new WebHostBuilder()
HtmlGenerationWebSite (2)
Startup.cs (1)
58new WebHostBuilder()
StartupWithCultureReplace.cs (1)
35new WebHostBuilder()
IdentitySample.Mvc (1)
Program.cs (1)
16new WebHostBuilder()
InProcessWebSite (5)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Program.cs (5)
59var host = new WebHostBuilder() 70var host = new WebHostBuilder() 97var host = new WebHostBuilder() 134var host = new WebHostBuilder() 192var host = new WebHostBuilder()
Interop.FunctionalTests (2)
Http3\Http3TlsTests.cs (2)
348var hostBuilder = new WebHostBuilder() 403var hostBuilder = new WebHostBuilder()
IStartupInjectionAssemblyName (1)
Program.cs (1)
21new WebHostBuilder()
Microsoft.AspNetCore (1)
WebHost.cs (1)
157var builder = new WebHostBuilder();
Microsoft.AspNetCore.DataProtection.Tests (1)
HostingTests.cs (1)
28var builder = new WebHostBuilder()
Microsoft.AspNetCore.Hosting.Tests (5)
WebHostBuilderTests.cs (4)
432var hostBuilder = new WebHostBuilder() 1486return new WebHostBuilder().UseConfiguration(config); 1491new WebHostBuilder(), 1510new WebHostBuilder().UseConfiguration(config),
WebHostTests.cs (1)
1106return new WebHostBuilder().UseConfiguration(config ?? new ConfigurationBuilder().Build()).UseStartup("Microsoft.AspNetCore.Hosting.Tests");
Microsoft.AspNetCore.Hosting.TestSites (1)
Program.cs (1)
25var builder = new WebHostBuilder()
Microsoft.AspNetCore.Hosting.WindowsServices.Tests (2)
WebHostServiceTests.cs (2)
22var host = new WebHostBuilder().UseServer(new FakeServer()).Configure(x => { }).Build(); 36var host = new WebHostBuilder().UseServer(new FakeServer()).Configure(x => { }).Build();
Microsoft.AspNetCore.Server.Kestrel.Tests (13)
HttpsConfigurationTests.cs (7)
24var hostBuilder = new WebHostBuilder() 62var hostBuilder = new WebHostBuilder() 83var hostBuilder = new WebHostBuilder() 121var hostBuilder = new WebHostBuilder() 153var hostBuilder = new WebHostBuilder() 189var hostBuilder = new WebHostBuilder() 214var hostBuilder = new WebHostBuilder()
WebHostBuilderKestrelExtensionsTests.cs (6)
22var hostBuilder = new WebHostBuilder() 43var hostBuilder = new WebHostBuilder() 58var hostBuilder = new WebHostBuilder() 80var hostBuilder = new WebHostBuilder() 88var hostBuilderReversed = new WebHostBuilder() 105var hostBuilder = new WebHostBuilder()
Microsoft.AspNetCore.SignalR.Client.Tests (2)
TestServerTests.cs (2)
22var builder = new WebHostBuilder().ConfigureServices(s => 74var builder = new WebHostBuilder().ConfigureServices(s =>
Microsoft.AspNetCore.TestHost.Tests (77)
ClientHandlerTests.cs (1)
694var builder = new WebHostBuilder()
HttpContextBuilderTests.cs (15)
20var builder = new WebHostBuilder().Configure(app => { }); 51var builder = new WebHostBuilder().Configure(app => { }); 66var builder = new WebHostBuilder().Configure(app => { }); 80var builder = new WebHostBuilder().Configure(app => 98var builder = new WebHostBuilder().Configure(app => 121var builder = new WebHostBuilder().Configure(app => 148var builder = new WebHostBuilder().Configure(app => 172var builder = new WebHostBuilder().Configure(app => 194var builder = new WebHostBuilder().Configure(app => 220var builder = new WebHostBuilder().Configure(app => 243var builder = new WebHostBuilder().Configure(app => 269var builder = new WebHostBuilder().Configure(app => 284var builder = new WebHostBuilder().Configure(app => 309var builder = new WebHostBuilder() 331var builder = new WebHostBuilder()
RequestBuilderTests.cs (3)
13var builder = new WebHostBuilder().Configure(app => { }); 26var builder = new WebHostBuilder().Configure(app => { }); 41var builder = new WebHostBuilder().Configure(app => { });
TestClientTests.cs (26)
29var builder = new WebHostBuilder().Configure(app => app.Run(appDelegate)); 51var builder = new WebHostBuilder().Configure(app => app.Run(appDelegate)); 73var builder = new WebHostBuilder().Configure(app => app.Run(appDelegate)); 93var builder = new WebHostBuilder().Configure(app => app.Run(appDelegate)); 111var builder = new WebHostBuilder().Configure(app => app.Run(appDelegate)); 135var builder = new WebHostBuilder(); 192var builder = new WebHostBuilder().Configure(app => app.Run(appDelegate)); 249var builder = new WebHostBuilder().Configure(app => app.Run(appDelegate)); 300var builder = new WebHostBuilder().Configure(app => app.Run(appDelegate)); 357var builder = new WebHostBuilder().Configure(app => app.Run(appDelegate)); 419var builder = new WebHostBuilder().Configure(app => app.Run(appDelegate)); 466var builder = new WebHostBuilder().Configure(app => app.Run(appDelegate)); 517var builder = new WebHostBuilder().Configure(app => app.Run(appDelegate)); 601var builder = new WebHostBuilder() 671var builder = new WebHostBuilder() 723var builder = new WebHostBuilder() 766var builder = new WebHostBuilder().Configure(app => 799var builder = new WebHostBuilder().Configure(app => 847var builder = new WebHostBuilder().Configure(app => app.Run(appDelegate)); 863var builder = new WebHostBuilder().Configure(app => app.Run(async ctx => 893var builder = new WebHostBuilder() 918var builder = new WebHostBuilder() 949var builder = new WebHostBuilder().Configure(app => app.Run(appDelegate)); 975var builder = new WebHostBuilder().Configure(app => app.Run(appDelegate)); 1002var builder = new WebHostBuilder().Configure(app => app.Run(appDelegate)); 1021using (var testServer = new TestServer(new WebHostBuilder()
TestServerTests.cs (29)
95new TestServer(new WebHostBuilder().Configure(app => { })); 101var builder = new WebHostBuilder() 112var builder = new WebHostBuilder() 124var builder = new WebHostBuilder() 165var builder = new WebHostBuilder() 180var builder = new WebHostBuilder() 194var builder = new WebHostBuilder().Configure(app => 210var builder = new WebHostBuilder().Configure(app => 253var builder = new WebHostBuilder().UseStartup<CustomContainerStartup>(); 264var builder = new WebHostBuilder() 286var builder = new WebHostBuilder() 303var builder = new WebHostBuilder() 327var builder = new WebHostBuilder() 426var builder = new WebHostBuilder().Configure(app => 447var builder = new WebHostBuilder().Configure(app => 496var builder = new WebHostBuilder().Configure(app => 537var builder = new WebHostBuilder().Configure(app => 558var builder = new WebHostBuilder().Configure(app => 575var builder = new WebHostBuilder().Configure(app => 606var builder = new WebHostBuilder().Configure(app => 628var builder = new WebHostBuilder().Configure(app => 644var builder = new WebHostBuilder().Configure(app => 662var builder = new WebHostBuilder().Configure(app => 681var builder = new WebHostBuilder() 699var builder = new WebHostBuilder() 710var builder = new WebHostBuilder() 725var builder = new WebHostBuilder() 753var builder = new WebHostBuilder().Configure(app => 786var builder = new WebHostBuilder().Configure(app => app.Run(appDelegate));
WebSocketClientTests.cs (3)
22using (var testServer = new TestServer(new WebHostBuilder() 59using (var testServer = new TestServer(new WebHostBuilder() 97using (var testServer = new TestServer(new WebHostBuilder()
Mvc.RoutingWebSite (1)
Program.cs (1)
17new WebHostBuilder()
MvcSandbox (1)
Startup.cs (1)
52new WebHostBuilder()
RazorBuildWebSite (2)
Startup.cs (1)
29new WebHostBuilder()
StartupWithHostingStartup.cs (1)
44new WebHostBuilder()
RazorPagesWebSite (1)
Program.cs (1)
17new WebHostBuilder()
RazorWebSite (1)
Program.cs (1)
17new WebHostBuilder()
SecurityWebSite (1)
Program.cs (1)
17new WebHostBuilder()
ServerComparison.TestSites (1)
Program.cs (1)
16var builder = new WebHostBuilder()
SimpleWebSite (1)
Startup.cs (1)
39new WebHostBuilder()
TagHelpersWebSite (1)
Startup.cs (1)
33new WebHostBuilder()
VersioningWebSite (1)
Program.cs (1)
17new WebHostBuilder()
XmlFormattersWebSite (1)
Startup.cs (1)
119new WebHostBuilder()
9 references to WebHostBuilder
Microsoft.AspNetCore (7)
WebHost.cs (7)
118/// Initializes a new instance of the <see cref="WebHostBuilder"/> class with pre-configured defaults. 121/// The following defaults are applied to the returned <see cref="WebHostBuilder"/>: 137/// Initializes a new instance of the <see cref="WebHostBuilder"/> class with pre-configured defaults. 140/// The following defaults are applied to the returned <see cref="WebHostBuilder"/>: 157var builder = new WebHostBuilder(); 287/// Initializes a new instance of the <see cref="WebHostBuilder"/> class with pre-configured defaults using typed Startup. 290/// The following defaults are applied to the returned <see cref="WebHostBuilder"/>:
Microsoft.AspNetCore.Hosting (1)
WebHostBuilder.cs (1)
35/// Initializes a new instance of the <see cref="WebHostBuilder"/> class.
Microsoft.AspNetCore.TestHost.Tests (1)
TestClientTests.cs (1)
135var builder = new WebHostBuilder();