6 implementations of Build
Microsoft.AspNetCore (2)
BootstrapHostBuilder.cs (1)
61public IHost Build()
ConfigureHostBuilder.cs (1)
38IHost IHostBuilder.Build()
Microsoft.AspNetCore.Mvc.Testing (1)
DeferredHostBuilder.cs (1)
37public IHost Build()
Microsoft.Extensions.Hosting (2)
HostApplicationBuilder.cs (1)
342public IHost Build() => throw new NotSupportedException();
HostBuilder.cs (1)
152public IHost Build()
Microsoft.Extensions.Hosting.Testing (1)
FakeHostBuilder.cs (1)
91public IHost Build() => new FakeHost(_builder.Build(), _options);
738 references to Build
AutobahnTestApp (1)
Program.cs (1)
76var host = builder.Build();
AzureAppServicesHostingStartupSample (1)
Startup.cs (1)
70.Build();
AzureAppServicesSample (1)
Startup.cs (1)
82.Build();
BasicLinkedApp (1)
Program.cs (1)
17CreateWebHostBuilder(args).Build().Run();
Benchmarks (1)
Program.cs (1)
12return GetHostBuilder(args).Build().RunAsync();
Binding.UDS.IntegrationTests (1)
ServiceHelper.cs (1)
34IHost host = hostBuilder.Build();
blazor-devserver (1)
Server\Program.cs (1)
51}).Build();
BlazorServerApp (1)
Program.cs (1)
10CreateHostBuilder(args).Build().Run();
Certificate.Optional.Sample (1)
Program.cs (1)
17CreateHostBuilder(args).Build().Run();
Certificate.Sample (1)
Program.cs (1)
12CreateHostBuilder(args).Build().Run();
ConcurrencyLimiterSample (1)
Startup.cs (1)
39.Build()
CookiePolicySample (1)
Program.cs (1)
24.Build();
CookieSessionSample (1)
Program.cs (1)
24.Build();
CorsMiddlewareWebSite (1)
Startup.cs (1)
28.Build();
CustomAuthorizationFailureResponse (1)
Program.cs (1)
13CreateHostBuilder(args).Build().Run();
DatabaseErrorPageSample (1)
Startup.cs (1)
39.Build();
DefaultBuilder.SampleApp (2)
Program.cs (2)
96.Build(); 103CreateHostBuilder(args).Build().Run();
DelegationSite (1)
Program.cs (1)
26using var host = builder.Build();
DeveloperExceptionPageSample (1)
Startup.cs (1)
58.Build();
Diagnostics.EFCore.FunctionalTests (11)
DatabaseErrorPageMiddlewareTest.cs (5)
37}).Build(); 74}).Build(); 356}).Build(); 393}).Build(); 546}).Build();
MigrationsEndPointMiddlewareTest.cs (6)
34}).Build(); 109}).Build(); 153}).Build(); 181}).Build(); 211}).Build(); 250}).Build();
Diagnostics.FunctionalTests (1)
TestFixture.cs (1)
30}).Build();
ExceptionHandlerSample (1)
Program.cs (1)
18.Build();
GenericHostWebSite (1)
Program.cs (1)
8public static void Main(string[] args) => CreateHostBuilder(args).Build().Run();
GenericWebHost (1)
Program.cs (1)
27.Build();
HeaderPropagationSample (1)
Program.cs (1)
10CreateHostBuilder(args).Build().Run();
HealthChecksSample (1)
Program.cs (1)
58.Build();
HostedBlazorWebassemblyApp.Server (1)
Program.cs (1)
19CreateHostBuilder(args).Build().Run();
HostFilteringSample (1)
Program.cs (1)
34return hostBuilder.Build();
HotAddSample (1)
Startup.cs (1)
114.Build();
http2cat (1)
Program.cs (1)
24.Build();
Http2SampleApp (1)
Program.cs (1)
77hostBuilder.Build().Run();
Http3SampleApp (1)
Program.cs (1)
117var host = hostBuilder.Build();
HttpLogging.Sample (1)
Program.cs (1)
12CreateHostBuilder(args).Build().Run();
HttpOverridesSample (1)
Startup.cs (1)
43.Build();
HttpsPolicySample (1)
Startup.cs (1)
68.Build();
HttpStress (1)
Program.cs (1)
507.Build()
Identity.DefaultUI.WebSite (1)
Program.cs (1)
10CreateHostBuilder(args).Build().Run();
IdentitySample.DefaultUI (1)
Program.cs (1)
10CreateHostBuilder(args).Build().Run();
IIS.FunctionalTests (16)
Http2TrailersResetTests.cs (10)
215.Build().RunAsync(); 242.Build().RunAsync(); 276.Build().RunAsync(); 303.Build().RunAsync(); 335.Build().RunAsync(); 371.Build().RunAsync(); 396.Build().RunAsync(); 422.Build().RunAsync(); 451.Build().RunAsync(); 482.Build().RunAsync();
src\Servers\IIS\IIS\test\Common.FunctionalTests\Http2Tests.cs (6)
92.Build().RunAsync(); 130.Build().RunAsync(); 200.Build().RunAsync(); 269.Build().RunAsync(); 314.Build().RunAsync(); 351.Build().RunAsync();
IIS.Tests (1)
Utilities\TestServer.cs (1)
163.Build();
IISExpress.FunctionalTests (6)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Http2Tests.cs (6)
92.Build().RunAsync(); 130.Build().RunAsync(); 200.Build().RunAsync(); 269.Build().RunAsync(); 314.Build().RunAsync(); 351.Build().RunAsync();
IISSample (1)
Startup.cs (1)
107.Build();
InMemory.FunctionalTests (1)
TestTransport\TestServer.cs (1)
106_host = hostBuilder.Build();
IntegrationTestsWebsite (1)
Program.cs (1)
10CreateHostBuilder(args).Build().Run();
Interop.FunctionalTests (44)
H2SpecTests.cs (1)
49using (var host = hostBuilder.Build())
Http2\Http2RequestTests.cs (5)
38using (var host = builder.Build()) 116using (var host = builder.Build()) 177using (var host = builder.Build()) 204using (var host = builder.Build()) 261using var host = builder.Build();
Http3\Http3RequestTests.cs (30)
79using (var host = builder.Build()) 143using (var host = builder.Build()) 245using (var host = builder.Build()) 286using (var host = builder.Build()) 335using (var host = builder.Build()) 410using (var host = builder.Build()) 480using (var host = builder.Build()) 552using (var host = builder.Build()) 610using (var host = builder.Build()) 670using (var host = builder.Build()) 717using (var host = builder.Build()) 773using (var host = builder.Build()) 845using (var host = builder.Build()) 905using (var host = builder.Build()) 1005using (var host = builder.Build()) 1102using (var host = builder.Build()) 1250using (var host = builder.Build()) 1311using (var host = builder.Build()) 1363using (var host = builder.Build()) 1416using (var host = builder.Build()) 1482using (var host = builder.Build()) 1535using (var host = builder.Build()) 1595using (var host = builder.Build()) 1655using (var host = builder.Build()) 1709using (var host = builder.Build()) 1772using (var host = builder.Build()) 1877using (var host = builder.Build()) 1954using (var host = builder.Build()) 2031using (var host = builder.Build()) 2131using (var host = builder.Build())
Http3\Http3TlsTests.cs (8)
51using var host = builder.Build(); 98using var host = builder.Build(); 140using var host = builder.Build(); 189using var host = builder.Build(); 239using var host = builder.Build(); 279using var host = builder.Build(); 317using var host = builder.Build(); 467using var host = hostBuilder.Build();
InteropWebsite (1)
Program.cs (1)
27CreateHostBuilder(args).Build().Run();
JwtBearerSample (1)
Program.cs (1)
16.Build();
JwtSample (1)
Program.cs (1)
25.Build()
Kestrel.SampleApp (1)
Startup.cs (1)
184return hostBuilder.Build().RunAsync();
LargeResponseApp (1)
Startup.cs (1)
54.Build();
LocalizationSample (1)
Startup.cs (1)
146.Build();
LocalizationWebsite (1)
Program.cs (1)
27.Build();
Logging.W3C.Sample (1)
Program.cs (1)
10CreateHostBuilder(args).Build().Run();
Microsoft.AspNetCore.Authentication.Test (40)
AuthenticationMiddlewareTests.cs (1)
52.Build();
CertificateTests.cs (1)
897.Build();
CookieTests.cs (15)
1246.Build(); 1281.Build(); 1307.Build(); 1335.Build(); 1359.Build(); 1381.Build(); 1407.Build(); 1429.Build(); 1455.Build(); 1480.Build(); 1623.Build(); 1654.Build(); 1678.Build(); 1722.Build(); 1877.Build();
DynamicSchemeTests.cs (1)
171.Build();
FacebookTests.cs (1)
472.Build();
GoogleTests.cs (1)
1238.Build();
JwtBearerTests.cs (2)
904.Build(); 1241.Build();
JwtBearerTests_Handler.cs (2)
849.Build(); 1300.Build();
MicrosoftAccountTests.cs (1)
420.Build();
OAuthTests.cs (1)
528.Build();
OpenIdConnect\OpenIdConnectConfigurationTests.cs (2)
460.Build(); 566.Build();
OpenIdConnect\OpenIdConnectEventTests.cs (1)
1302.Build();
OpenIdConnect\OpenIdConnectEventTests_Handler.cs (1)
1300.Build();
OpenIdConnect\TestServerBuilder.cs (1)
117.Build();
PolicyTests.cs (1)
492.Build();
RemoteAuthenticationTests.cs (1)
51.Build();
TwitterTests.cs (1)
586.Build();
WsFederation\WsFederationTest.cs (3)
58.Build(); 228.Build(); 358.Build();
WsFederation\WsFederationTest_Handler.cs (3)
56.Build(); 226.Build(); 354.Build();
Microsoft.AspNetCore.CookiePolicy.Test (7)
CookieConsentTests.cs (1)
719.Build();
CookiePolicyTests.cs (6)
266.Build(); 305.Build(); 347.Build(); 390.Build(); 441.Build(); 541.Build();
Microsoft.AspNetCore.Cors.Test (10)
CorsMiddlewareTests.cs (10)
43}).Build(); 85}).Build(); 136}).Build(); 185}).Build(); 250}).Build(); 313}).Build(); 356}).Build(); 472}).Build(); 530}).Build(); 606}).Build();
Microsoft.AspNetCore.DataProtection.Tests (2)
HostingTests.cs (2)
64using (var host = builder.Build()) 92using (var host = builder.Build())
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (33)
HealthCheckEndpointRouteBuilderExtensionsTest.cs (3)
36}).Build(); 69}).Build(); 114}).Build();
HealthCheckMiddlewareSampleTest.cs (4)
22}).Build(); 44}).Build(); 67}).Build(); 89}).Build();
HealthCheckMiddlewareTests.cs (26)
31}).Build(); 58}).Build(); 85}).Build(); 112}).Build(); 142}).Build(); 175}).Build(); 208}).Build(); 241}).Build(); 274}).Build(); 320}).Build(); 357}).Build(); 392}).Build(); 421}).Build(); 456}).Build(); 495}).Build(); 525}).Build(); 555}).Build(); 583}).Build(); 613}).Build(); 648}).Build(); 685}).Build(); 723}).Build(); 761}).Build(); 799}).Build(); 841}).Build(); 885}).Build();
Microsoft.AspNetCore.Diagnostics.Tests (39)
DeveloperExceptionPageMiddlewareTest.cs (13)
57}).Build(); 110}).Build(); 169}).Build(); 211}).Build(); 246}).Build(); 283}).Build(); 321}).Build(); 356}).Build(); 393}).Build(); 429}).Build(); 467}).Build(); 555}).Build(); 599}).Build();
ExceptionHandlerMiddlewareTest.cs (3)
63}).Build(); 331}).Build(); 398}).Build();
ExceptionHandlerTest.cs (17)
54}).Build(); 109}).Build(); 175}).Build(); 231}).Build(); 286}).Build(); 358}).Build(); 428}).Build(); 482}).Build(); 523}).Build(); 592}).Build(); 641}).Build(); 682}).Build(); 721}).Build(); 762}).Build(); 1021}).Build(); 1091}).Build(); 1154}).Build();
StatusCodeMiddlewareTest.cs (6)
53}).Build(); 121}).Build(); 183}).Build(); 238}).Build(); 343}).Build(); 381}).Build();
Microsoft.AspNetCore.HeaderPropagation.Tests (3)
HeaderPropagationIntegrationTest.cs (3)
54}).Build(); 162}).Build(); 221}).Build();
Microsoft.AspNetCore.HostFiltering.Tests (6)
HostFilteringMiddlewareTests.cs (6)
30}).Build(); 69}).Build(); 112}).Build(); 163}).Build(); 215}).Build(); 254}).Build();
Microsoft.AspNetCore.Hosting.Tests (6)
GenericWebHostBuilderTests.cs (5)
24.Build(); 37.Build(); 60.Build(); 84.Build(); 124.Build();
WebHostBuilderTests.cs (1)
1035hostBuilder.Build();
Microsoft.AspNetCore.Http.Connections.Tests (4)
HttpConnectionDispatcherTests.cs (2)
3533.Build(); 3679.Build();
MapConnectionHandlerTests.cs (2)
502.Build(); 534.Build();
Microsoft.AspNetCore.HttpLogging.Tests (2)
HttpLoggingMiddlewareTests.cs (2)
1933using var host = builder.Build(); 2082return builder.Build();
Microsoft.AspNetCore.HttpOverrides.Tests (40)
CertificateForwardingTest.cs (5)
63}).Build(); 102}).Build(); 140}).Build(); 178}).Build(); 216}).Build();
ForwardedHeadersMiddlewareTest.cs (29)
32}).Build(); 68}).Build(); 126}).Build(); 164}).Build(); 237}).Build(); 269}).Build(); 298}).Build(); 370}).Build(); 455}).Build(); 506}).Build(); 557}).Build(); 593}).Build(); 628}).Build(); 682}).Build(); 739}).Build(); 777}).Build(); 819}).Build(); 869}).Build(); 910}).Build(); 945}).Build(); 980}).Build(); 1034}).Build(); 1073}).Build(); 1110}).Build(); 1149}).Build(); 1191}).Build(); 1227}).Build(); 1271}).Build(); 1317}).Build();
HttpMethodOverrideMiddlewareTest.cs (6)
33}).Build(); 64}).Build(); 94}).Build(); 127}).Build(); 165}).Build(); 202}).Build();
Microsoft.AspNetCore.HttpsPolicy.Tests (18)
HstsMiddlewareTests.cs (8)
58}).Build(); 105}).Build(); 151}).Build(); 196}).Build(); 251}).Build(); 306}).Build(); 353}).Build(); 400}).Build();
HttpsPolicyTests.cs (1)
57}).Build();
HttpsRedirectionMiddlewareTests.cs (9)
44}).Build(); 99}).Build(); 155}).Build(); 211}).Build(); 255}).Build(); 298}).Build(); 341}).Build(); 394}).Build(); 436}).Build();
Microsoft.AspNetCore.Identity.InMemory.Test (1)
FunctionalTest.cs (1)
398.Build();
Microsoft.AspNetCore.Localization.FunctionalTests (2)
LocalizationSampleTest.cs (1)
25}).Build();
LocalizationTest.cs (1)
104}).Build();
Microsoft.AspNetCore.Localization.Routing.Tests (3)
RouteDataRequestCultureProviderTest.cs (3)
77}).Build(); 123}).Build(); 199}).Build();
Microsoft.AspNetCore.Localization.Tests (19)
AcceptLanguageHeaderRequestCultureProviderTest.cs (4)
42}).Build(); 83}).Build(); 123}).Build(); 169}).Build();
CookieRequestCultureProviderTest.cs (5)
56}).Build(); 108}).Build(); 157}).Build(); 206}).Build(); 266}).Build();
CustomRequestCultureProviderTest.cs (1)
53}).Build();
QueryStringRequestCultureProviderTest.cs (8)
46}).Build(); 80}).Build(); 121}).Build(); 162}).Build(); 204}).Build(); 246}).Build(); 293}).Build(); 341}).Build();
RequestLocalizationMiddlewareTest.cs (1)
59}).Build();
Microsoft.AspNetCore.MiddlewareAnalysis.Tests (1)
MiddlewareAnalysisTests.cs (1)
36}).Build();
Microsoft.AspNetCore.Mvc.Testing (1)
WebApplicationFactory.cs (1)
440var host = builder.Build();
Microsoft.AspNetCore.OutputCaching.Tests (41)
OutputCacheTests.cs (41)
23using var host = builder.Build(); 45using var host = builder.Build(); 65using var host = builder.Build(); 85using var host = builder.Build(); 105using var host = builder.Build(); 127using var host = builder.Build(); 158using var host = builder.Build(); 189using var host = builder.Build(); 212using var host = builder.Build(); 239using var host = builder.Build(); 262using var host = builder.Build(); 290using var host = builder.Build(); 311using var host = builder.Build(); 335using var host = builder.Build(); 360using var host = builder.Build(); 383using var host = builder.Build(); 406using var host = builder.Build(); 429using var host = builder.Build(); 452using var host = builder.Build(); 474using var host = builder.Build(); 497using var host = builder.Build(); 519using var host = builder.Build(); 541using var host = builder.Build(); 561using var host = builder.Build(); 585using var host = builder.Build(); 610using var host = builder.Build(); 630using var host = builder.Build(); 654using var host = builder.Build(); 678using var host = builder.Build(); 704using var host = builder.Build(); 727using var host = builder.Build(); 753using var host = builder.Build(); 776using var host = builder.Build(); 803using var host = builder.Build(); 826using var host = builder.Build(); 849using var host = builder.Build(); 869using var host = builder.Build(); 893using var host = builder.Build(); 926using var host = builder.Build(); 946using var host = builder.Build(); 975using var host = builder.Build();
Microsoft.AspNetCore.RequestDecompression.Tests (6)
RequestDecompressionMiddlewareTests.cs (6)
232}).Build(); 303}).Build(); 379}).Build(); 481}).Build(); 565}).Build(); 716}).Build();
Microsoft.AspNetCore.ResponseCaching.Tests (37)
ResponseCachingTests.cs (37)
22using var host = builder.Build(); 46using var host = builder.Build(); 68using var host = builder.Build(); 90using var host = builder.Build(); 112using var host = builder.Build(); 136using var host = builder.Build(); 169using var host = builder.Build(); 202using var host = builder.Build(); 226using var host = builder.Build(); 250using var host = builder.Build(); 273using var host = builder.Build(); 296using var host = builder.Build(); 320using var host = builder.Build(); 342using var host = builder.Build(); 364using var host = builder.Build(); 386using var host = builder.Build(); 408using var host = builder.Build(); 430using var host = builder.Build(); 452using var host = builder.Build(); 474using var host = builder.Build(); 496using var host = builder.Build(); 522using var host = builder.Build(); 549using var host = builder.Build(); 571using var host = builder.Build(); 597using var host = builder.Build(); 623using var host = builder.Build(); 650using var host = builder.Build(); 675using var host = builder.Build(); 703using var host = builder.Build(); 728using var host = builder.Build(); 754using var host = builder.Build(); 779using var host = builder.Build(); 804using var host = builder.Build(); 826using var host = builder.Build(); 852using var host = builder.Build(); 887using var host = builder.Build(); 922using var host = builder.Build();
Microsoft.AspNetCore.ResponseCompression.Tests (17)
ResponseCompressionMiddlewareTest.cs (17)
170}).Build(); 328}).Build(); 465}).Build(); 528}).Build(); 591}).Build(); 645}).Build(); 691}).Build(); 743}).Build(); 796}).Build(); 866}).Build(); 930}).Build(); 994}).Build(); 1055}).Build(); 1105}).Build(); 1155}).Build(); 1205}).Build(); 1271}).Build();
Microsoft.AspNetCore.Rewrite.Tests (65)
ApacheModRewrite\ModRewriteMiddlewareTest.cs (17)
29}).Build(); 55}).Build(); 81}).Build(); 106}).Build(); 131}).Build(); 156}).Build(); 181}).Build(); 208}).Build(); 239}).Build(); 265}).Build(); 291}).Build(); 317}).Build(); 344}).Build(); 372}).Build(); 400}).Build(); 426}).Build(); 456}).Build();
IISUrlRewrite\MiddleWareTests.cs (20)
39}).Build(); 71}).Build(); 107}).Build(); 139}).Build(); 174}).Build(); 209}).Build(); 243}).Build(); 283}).Build(); 320}).Build(); 357}).Build(); 391}).Build(); 425}).Build(); 464}).Build(); 500}).Build(); 536}).Build(); 573}).Build(); 610}).Build(); 655}).Build(); 686}).Build(); 742}).Build();
MiddlewareTests.cs (28)
35}).Build(); 65}).Build(); 97}).Build(); 129}).Build(); 162}).Build(); 196}).Build(); 220}).Build(); 248}).Build(); 275}).Build(); 317}).Build(); 349}).Build(); 375}).Build(); 402}).Build(); 431}).Build(); 460}).Build(); 485}).Build(); 520}).Build(); 548}).Build(); 577}).Build(); 602}).Build(); 627}).Build(); 663}).Build(); 690}).Build(); 717}).Build(); 747}).Build(); 775}).Build(); 800}).Build(); 829}).Build();
Microsoft.AspNetCore.Routing.FunctionalTests (33)
Benchmarks\EndpointRoutingBenchmarkTest.cs (1)
25_host = hostBuilder.Build();
Benchmarks\RouterBenchmarkTest.cs (1)
26_host = hostBuilder.Build();
EndpointRoutingIntegrationTest.cs (10)
50.Build(); 82.Build(); 114.Build(); 146.Build(); 175.Build(); 207.Build(); 238.Build(); 269.Build(); 301.Build(); 337.Build();
MinimalFormTests.cs (15)
44.Build(); 104.Build(); 154.Build(); 193.Build(); 238.Build(); 270.Build(); 317.Build(); 413.Build(); 465.Build(); 524.Build(); 576.Build(); 628.Build(); 677.Build(); 716.Build(); 743.Build();
RouteHandlerTest.cs (2)
41.Build(); 89.Build();
RoutingTestFixture.cs (1)
24.Build();
ShortCircuitTests.cs (2)
46.Build(); 84.Build();
WebHostBuilderExtensionsTest.cs (1)
90.Build();
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (21)
Http2Tests.cs (20)
61.Build().RunAsync(); 104.Build().RunAsync(); 152.Build().RunAsync(); 216.Build().RunAsync(); 280.Build().RunAsync(); 314.Build().RunAsync(); 359.Build().RunAsync(); 398.Build().RunAsync(); 437.Build().RunAsync(); 511.Build().RunAsync(); 542.Build().RunAsync(); 576.Build().RunAsync(); 608.Build().RunAsync(); 691.Build().RunAsync(); 738.Build().RunAsync(); 788.Build().RunAsync(); 840.Build().RunAsync(); 886.Build().RunAsync(); 935.Build().RunAsync(); 993.Build().RunAsync();
Utilities.cs (1)
102var host = builder.Build();
Microsoft.AspNetCore.Server.IISIntegration.Tests (13)
IISExtensionTests.cs (1)
33.Build();
IISMiddlewareTests.cs (12)
48.Build(); 86.Build(); 128.Build(); 187.Build(); 232.Build(); 277.Build(); 314.Build(); 343.Build(); 377.Build(); 418.Build(); 475.Build(); 520.Build();
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
InMemoryTransportBenchmark.cs (1)
57.Build();
NamedPipesTransportBenchmark.cs (1)
58.Build();
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (7)
WebHostTests.cs (7)
74using (var host = builder.Build()) 130using var host = builder.Build(); 165using var host = builder.Build(); 202using var host = builder.Build(); 240using var host = builder.Build(); 311using var host = builder.Build(); 406using var host = builder.Build();
Microsoft.AspNetCore.Session.Tests (21)
SessionTests.cs (21)
48}).Build(); 85}).Build(); 140}).Build(); 191}).Build(); 251}).Build(); 309}).Build(); 355}).Build(); 413}).Build(); 483}).Build(); 539}).Build(); 589}).Build(); 625}).Build(); 670}).Build(); 719}).Build(); 768}).Build(); 816}).Build(); 868}).Build(); 931}).Build(); 997}).Build(); 1062}).Build(); 1114}).Build();
Microsoft.AspNetCore.SignalR.Tests (1)
MapSignalRTests.cs (1)
413.Build();
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
src\Shared\SignalR\InProcessTestServer.cs (1)
112}).Build();
Microsoft.AspNetCore.StaticFiles.FunctionalTests (8)
FallbackStaticFileTest.cs (2)
52}).Build(); 101}).Build();
StaticFileMiddlewareTests.cs (6)
32}).Build(); 77}).Build(); 102}).Build(); 150}).Build(); 192}).Build(); 277}).Build();
Microsoft.AspNetCore.StaticFiles.Tests (4)
StaticFileMiddlewareTests.cs (3)
32}).Build(); 66}).Build(); 106}).Build();
StaticFilesTestServer.cs (1)
32}).Build();
Microsoft.AspNetCore.TestHost.Tests (1)
TestServerTests.cs (1)
36.Build();
Microsoft.AspNetCore.Testing.Tests (1)
FakesExtensionsTests.cs (1)
34.Build();
Microsoft.AspNetCore.Tests (1)
WebApplicationTests.cs (1)
373Assert.Throws<NotSupportedException>(() => ((IHostBuilder)createBuilder().Host).Build());
Microsoft.AspNetCore.WebSockets.Tests (1)
KestrelWebSocketHelpers.cs (1)
72}).Build();
Microsoft.Extensions.Diagnostics.Probes.Tests (3)
KubernetesProbesExtensionsTests.cs (1)
126.Build();
KubernetesProbesOptionsValidatorTests.cs (1)
122.Build();
TcpEndpointProbesExtensionsTests.cs (1)
181.Build();
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (6)
Linux\AcceptanceTest.cs (2)
234.Build(); 318.Build();
ResourceMonitoringExtensionsTests.cs (4)
101.Build(); 133}).Build(); 173}).Build(); 194}).Build();
Microsoft.Extensions.Hosting (2)
HostingHostBuilderExtensions.cs (2)
382return hostBuilder.UseConsoleLifetime().Build().RunAsync(cancellationToken); 398return hostBuilder.UseConsoleLifetime(configureOptions).Build().RunAsync(cancellationToken);
Microsoft.Extensions.Hosting.Abstractions (1)
HostingAbstractionsHostBuilderExtensions.cs (1)
32IHost host = hostBuilder.Build();
Microsoft.Extensions.Hosting.Testing (1)
FakeHostBuilder.cs (1)
91public IHost Build() => new FakeHost(_builder.Build(), _options);
Microsoft.Extensions.Hosting.Testing.Tests (6)
FakeHostBuilderTests.cs (4)
135var exception = Record.Exception(() => hostBuilder.Build()); 153var exception = Record.Exception(() => hostBuilder.Build()); 167var exception = Record.Exception(() => hostBuilder.Build()); 184var exception = Record.Exception(() => hostBuilder.Build());
HostingFakesExtensionsTests.cs (2)
84var returnedBuilder = builderMock.Object.Configure(builder => builder.Build()); 87builderMock.Verify(mock => mock.Build(), Times.Once);
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Logging\HttpClientLoggingExtensionsTest.cs (1)
213.Build();
Microsoft.Extensions.Options.Contextual.Tests (1)
AcceptanceTests.cs (1)
90.Build();
Microsoft.Extensions.Telemetry.Tests (6)
Enrichment\ApplicationEnricherExtensionsTests.cs (3)
39.Build(); 58.Build(); 82.Build();
Enrichment\ProcessEnricherExtensionsTests.cs (3)
42.Build(); 59.Build(); 80.Build();
MiddlewareAnalysisSample (1)
Startup.cs (1)
93}).Build();
NativeIISSample (1)
Startup.cs (1)
152.Build();
Negotiate.Client (1)
Program.cs (1)
13CreateHostBuilder(args).Build().Run();
Negotiate.Server (2)
Program.cs (2)
15using var host1 = CreateHostBuilder(args.Append("Persist=true").ToArray()).Build(); 16using var host2 = CreateHostBuilder(args.Append("Persist=false").ToArray()).Build();
NegotiateAuthSample (1)
Program.cs (1)
12CreateHostBuilder(args).Build().Run();
OpenIdConnectSample (1)
Program.cs (1)
16.Build();
PlaintextApp (1)
Startup.cs (1)
49.Build();
QueueSharing (1)
Program.cs (1)
72.Build();
RequestDecompressionSample (1)
Startup.cs (1)
44}).Build();
ResponseCachingSample (1)
Startup.cs (1)
41}).Build();
ResponseCompressionSample (1)
Startup.cs (1)
79}).Build();
RewriteSample (1)
Startup.cs (1)
57}).Build();
RoutingSandbox (1)
Program.cs (1)
13var host = GetHostBuilder(args).Build();
RoutingWebSite (1)
Program.cs (1)
15var host = GetHostBuilder(args).Build();
SampleStartups (5)
StartupBlockingOnStart.cs (1)
45.Build();
StartupConfigureAddresses.cs (1)
39.Build();
StartupFullControl.cs (1)
49.Build();
StartupHelloWorld.cs (1)
34.Build();
StartupInjection.cs (1)
36.Build();
Sandbox (1)
Program.cs (1)
10CreateHostBuilder(args).Build().Run();
SelfHostServer (1)
Program.cs (1)
14CreateHostBuilder(args).Build().Run();
SessionSample (1)
Startup.cs (1)
87}).Build();
SignalR.Client.FunctionalTestApp (1)
Program.cs (1)
57return hostBuilder.Build().RunAsync();
SignalRSamples (1)
Program.cs (1)
44}).Build();
SocialWeather (1)
Program.cs (1)
25.Build();
Sockets.BindTests (21)
SocketTransportOptionsTests.cs (1)
125.Build();
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (1)
117.Build();
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (19)
199using (var host = hostBuilder.Build()) 257using (var host = hostBuilder.Build()) 324using (var host = hostBuilder.Build()) 382using (var host = hostBuilder.Build()) 429using (var host = hostBuilder.Build()) 516using (var host = hostBuilder.Build()) 554using (var host = hostBuilder.Build()) 589using (var host = hostBuilder.Build()) 624using (var host = hostBuilder.Build()) 669using (var host = hostBuilder.Build()) 710using (var host = hostBuilder.Build()) 756using (var host = hostBuilder.Build()) 781using (var host = hostBuilder.Build()) 807using (var host = hostBuilder.Build()) 827using (var host = hostBuilder.Build()) 858using (var host = hostBuilder.Build()) 880using (var host = hostBuilder.Build()) 917using (var host = hostBuilder.Build()) 971using (var host = hostBuilder.Build())
Sockets.FunctionalTests (13)
SocketTransportTests.cs (1)
50using var host = builder.Build();
src\Servers\Kestrel\shared\test\TransportTestHelpers\TestServer.cs (1)
117.Build();
src\Servers\Kestrel\test\FunctionalTests\MaxRequestBufferSizeTests.cs (1)
369.Build();
src\Servers\Kestrel\test\FunctionalTests\RequestTests.cs (6)
112using (var host = builder.Build()) 179using (var host = builder.Build()) 564using (var host = builder.Build()) 611using (var host = builder.Build()) 705using (var host = builder.Build()) 1118using (var host = builder.Build())
src\Servers\Kestrel\test\FunctionalTests\ResponseTests.cs (2)
72using (var host = hostBuilder.Build()) 121using (var host = hostBuilder.Build())
src\Servers\Kestrel\test\FunctionalTests\UnixDomainSocketsTests.cs (2)
93using (var host = hostBuilder.Build()) 159using (var host = hostBuilder.Build())
StaticFileSample (1)
Startup.cs (1)
40}).Build();
StatusCodePagesSample (1)
Startup.cs (1)
116}).Build();
SystemdTestApp (1)
Startup.cs (1)
81return hostBuilder.Build().RunAsync();
Wasm.Performance.Driver (1)
Program.cs (1)
290.Build();
WelcomePageSample (1)
Startup.cs (1)
22}).Build();
WsFedSample (1)
Program.cs (1)
38.Build();