589 instantiations of HostBuilder
Aspire.Dashboard.Tests (1)
Middleware\ValidateTokenMiddlewareTests.cs (1)
68return await new HostBuilder()
AutobahnTestApp (1)
Program.cs (1)
17var builder = new HostBuilder()
AzureAppServicesHostingStartupSample (1)
Startup.cs (1)
59var host = new HostBuilder()
AzureAppServicesSample (1)
Startup.cs (1)
70var host = new HostBuilder()
BasicLinkedApp (1)
Program.cs (1)
23return new HostBuilder()
Benchmarks (1)
Program.cs (1)
25var hostBuilder = new HostBuilder()
ConcurrencyLimiterSample (1)
Startup.cs (1)
32return new HostBuilder()
CookiePolicySample (1)
Program.cs (1)
10var host = new HostBuilder()
CookieSessionSample (1)
Program.cs (1)
10var host = new HostBuilder()
CorsMiddlewareWebSite (1)
Startup.cs (1)
20var host = new HostBuilder()
DatabaseErrorPageSample (1)
Startup.cs (1)
31var host = new HostBuilder()
DefaultBuilder.SampleApp (1)
Program.cs (1)
87var host = new HostBuilder()
DeveloperExceptionPageSample (1)
Startup.cs (1)
50var host = new HostBuilder()
Diagnostics.EFCore.FunctionalTests (11)
DatabaseErrorPageMiddlewareTest.cs (5)
27using var host = new HostBuilder() 64using var host = new HostBuilder() 335using var host = new HostBuilder() 378using var host = new HostBuilder() 520var host = new HostBuilder()
MigrationsEndPointMiddlewareTest.cs (6)
26using var host = new HostBuilder() 83using var host = new HostBuilder() 144using var host = new HostBuilder() 172using var host = new HostBuilder() 204using var host = new HostBuilder() 237using var host = new HostBuilder()
Diagnostics.FunctionalTests (1)
TestFixture.cs (1)
24_host = new HostBuilder()
ExceptionHandlerSample (1)
Program.cs (1)
10var host = new HostBuilder()
GenericHostWebSite (1)
Program.cs (1)
13new HostBuilder()
HealthChecksSample (1)
Program.cs (1)
44return new HostBuilder()
HostFilteringSample (1)
Program.cs (1)
15var hostBuilder = new HostBuilder()
HotAddSample (1)
Startup.cs (1)
106var host = new HostBuilder()
http2cat (1)
Program.cs (1)
18using var host = new HostBuilder()
Http2SampleApp (1)
Program.cs (1)
22var hostBuilder = new HostBuilder()
Http3SampleApp (1)
Program.cs (1)
19var hostBuilder = new HostBuilder()
HttpOverridesSample (1)
Startup.cs (1)
35var host = new HostBuilder()
HttpsPolicySample (1)
Startup.cs (1)
45var host = new HostBuilder()
IIS.FunctionalTests (16)
Http2TrailersResetTests.cs (10)
195await new HostBuilder() 223await new HostBuilder() 250await new HostBuilder() 284await new HostBuilder() 311await new HostBuilder() 343await new HostBuilder() 379await new HostBuilder() 404await new HostBuilder() 429await new HostBuilder() 458await new HostBuilder()
src\Servers\IIS\IIS\test\Common.FunctionalTests\Http2Tests.cs (6)
64await new HostBuilder() 101await new HostBuilder() 144await new HostBuilder() 214await new HostBuilder() 276await new HostBuilder() 332await new HostBuilder()
IIS.Tests (1)
Utilities\TestServer.cs (1)
146_host = new HostBuilder()
IISExpress.FunctionalTests (6)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Http2Tests.cs (6)
64await new HostBuilder() 101await new HostBuilder() 144await new HostBuilder() 214await new HostBuilder() 276await new HostBuilder() 332await new HostBuilder()
IISSample (1)
Startup.cs (1)
95var host = new HostBuilder()
InMemory.FunctionalTests (1)
TestTransport\TestServer.cs (1)
77var hostBuilder = new HostBuilder()
Interop.FunctionalTests (39)
H2SpecTests.cs (1)
30var hostBuilder = new HostBuilder()
Http2WebSocketInteropTests.cs (2)
51var hostBuilder = new HostBuilder() 101var hostBuilder = new HostBuilder()
HttpClientHttp2InteropTests.cs (35)
53var hostBuilder = new HostBuilder() 74var hostBuilder = new HostBuilder() 107var hostBuilder = new HostBuilder() 155var hostBuilder = new HostBuilder() 262var hostBuilder = new HostBuilder() 321var hostBuilder = new HostBuilder() 403var hostBuilder = new HostBuilder() 519var hostBuilder = new HostBuilder() 549var hostBuilder = new HostBuilder() 584var hostBuilder = new HostBuilder() 609var hostBuilder = new HostBuilder() 637var hostBuilder = new HostBuilder() 664var hostBuilder = new HostBuilder() 700var hostBuilder = new HostBuilder() 756var hostBuilder = new HostBuilder() 814var hostBuilder = new HostBuilder() 860var hostBuilder = new HostBuilder() 905var hostBuilder = new HostBuilder() 946var hostBuilder = new HostBuilder() 986var hostBuilder = new HostBuilder() 1028var hostBuilder = new HostBuilder() 1080var hostBuilder = new HostBuilder() 1132var hostBuilder = new HostBuilder() 1193var hostBuilder = new HostBuilder() 1254var hostBuilder = new HostBuilder() 1314var hostBuilder = new HostBuilder() 1348var hostBuilder = new HostBuilder() 1381var hostBuilder = new HostBuilder() 1415var hostBuilder = new HostBuilder() 1457var hostBuilder = new HostBuilder() 1493var hostBuilder = new HostBuilder() 1551var hostBuilder = new HostBuilder() 1578var hostBuilder = new HostBuilder() 1601var hostBuilder = new HostBuilder() 1646var hostBuilder = new HostBuilder()
HttpHelpers.cs (1)
68return new HostBuilder()
Kestrel.SampleApp (1)
Startup.cs (1)
74var hostBuilder = new HostBuilder()
LargeResponseApp (1)
Startup.cs (1)
43var host = new HostBuilder()
LocalizationSample (1)
Startup.cs (1)
136var host = new HostBuilder()
LocalizationWebsite (1)
Program.cs (1)
14var host = new HostBuilder()
Microsoft.AspNetCore.Authentication.Negotiate.Test (4)
EventTests.cs (1)
411var builder = new HostBuilder()
NegotiateHandlerTests.cs (2)
256var builder = new HostBuilder() 382var builder = new HostBuilder()
ServerDeferralTests.cs (1)
44var builder = new HostBuilder()
Microsoft.AspNetCore.Authentication.Test (40)
AuthenticationMiddlewareTests.cs (1)
24using var host = new HostBuilder()
CertificateTests.cs (1)
797var host = new HostBuilder()
CookieTests.cs (15)
1234using var host = new HostBuilder() 1269using var host = new HostBuilder() 1293using var host = new HostBuilder() 1321using var host = new HostBuilder() 1349using var host = new HostBuilder() 1372using var host = new HostBuilder() 1398using var host = new HostBuilder() 1420using var host = new HostBuilder() 1446using var host = new HostBuilder() 1470using var host = new HostBuilder() 1613using var host = new HostBuilder() 1638using var host1 = new HostBuilder() 1661using var host2 = new HostBuilder() 1689using var host = new HostBuilder() 1809var host = new HostBuilder()
DynamicSchemeTests.cs (1)
131var host = new HostBuilder()
FacebookTests.cs (1)
457var host = new HostBuilder()
GoogleTests.cs (1)
1146var host = new HostBuilder()
JwtBearerTests.cs (2)
885using var host = new HostBuilder() 1161var host = new HostBuilder()
JwtBearerTests_Handler.cs (2)
830using var host = new HostBuilder() 1220var host = new HostBuilder()
MicrosoftAccountTests.cs (1)
357var host = new HostBuilder()
OAuthTests.cs (1)
513var host = new HostBuilder()
OpenIdConnect\OpenIdConnectConfigurationTests.cs (2)
433using var host = new HostBuilder() 556var host = new HostBuilder()
OpenIdConnect\OpenIdConnectEventTests.cs (1)
1266var host = new HostBuilder()
OpenIdConnect\OpenIdConnectEventTests_Handler.cs (1)
1266var host = new HostBuilder()
OpenIdConnect\TestServerBuilder.cs (1)
64var host = new HostBuilder()
PolicyTests.cs (1)
463var host = new HostBuilder()
RemoteAuthenticationTests.cs (1)
36var host = new HostBuilder()
TwitterTests.cs (1)
537var host = new HostBuilder()
WsFederation\WsFederationTest.cs (3)
43using var host = new HostBuilder() 203using var host = new HostBuilder() 276var host = new HostBuilder()
WsFederation\WsFederationTest_Handler.cs (3)
41using var host = new HostBuilder() 201using var host = new HostBuilder() 274var host = new HostBuilder()
Microsoft.AspNetCore.CookiePolicy.Test (7)
CookieConsentTests.cs (1)
704var host = new HostBuilder()
CookiePolicyTests.cs (6)
245using var host = new HostBuilder() 284using var host = new HostBuilder() 321using var host = new HostBuilder() 360using var host = new HostBuilder() 411using var host = new HostBuilder() 527using var host = new HostBuilder()
Microsoft.AspNetCore.Cors.Test (10)
CorsMiddlewareTests.cs (10)
27using var host = new HostBuilder() 67using var host = new HostBuilder() 116using var host = new HostBuilder() 165using var host = new HostBuilder() 230using var host = new HostBuilder() 295using var host = new HostBuilder() 338using var host = new HostBuilder() 438using var host = new HostBuilder() 511using var host = new HostBuilder() 571using var host = new HostBuilder()
Microsoft.AspNetCore.DataProtection.Tests (2)
HostingTests.cs (2)
55var builder = new HostBuilder() 84var builder = new HostBuilder()
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (33)
HealthCheckEndpointRouteBuilderExtensionsTest.cs (3)
19using var host = new HostBuilder() 51using var host = new HostBuilder() 89using var host = new HostBuilder()
HealthCheckMiddlewareSampleTest.cs (4)
16using var host = new HostBuilder() 38using var host = new HostBuilder() 61using var host = new HostBuilder() 83using var host = new HostBuilder()
HealthCheckMiddlewareTests.cs (26)
22using var host = new HostBuilder() 45using var host = new HostBuilder() 72using var host = new HostBuilder() 99using var host = new HostBuilder() 129using var host = new HostBuilder() 159using var host = new HostBuilder() 192using var host = new HostBuilder() 225using var host = new HostBuilder() 258using var host = new HostBuilder() 296using var host = new HostBuilder() 338using var host = new HostBuilder() 373using var host = new HostBuilder() 408using var host = new HostBuilder() 440using var host = new HostBuilder() 475using var host = new HostBuilder() 512using var host = new HostBuilder() 542using var host = new HostBuilder() 570using var host = new HostBuilder() 600using var host = new HostBuilder() 629using var host = new HostBuilder() 666using var host = new HostBuilder() 702using var host = new HostBuilder() 740using var host = new HostBuilder() 778using var host = new HostBuilder() 814using var host = new HostBuilder() 858using var host = new HostBuilder()
Microsoft.AspNetCore.Diagnostics.Tests (39)
DeveloperExceptionPageMiddlewareTest.cs (13)
30using var host = new HostBuilder() 78using var host = new HostBuilder() 137using var host = new HostBuilder() 197using var host = new HostBuilder() 233using var host = new HostBuilder() 270using var host = new HostBuilder() 306using var host = new HostBuilder() 343using var host = new HostBuilder() 376using var host = new HostBuilder() 410using var host = new HostBuilder() 448using var host = new HostBuilder() 541using var host = new HostBuilder() 581using var host = new HostBuilder()
ExceptionHandlerMiddlewareTest.cs (3)
36using var host = new HostBuilder() 308using var host = new HostBuilder() 371using var host = new HostBuilder()
ExceptionHandlerTest.cs (17)
30using var host = new HostBuilder() 70using var host = new HostBuilder() 126using var host = new HostBuilder() 203using var host = new HostBuilder() 259using var host = new HostBuilder() 315using var host = new HostBuilder() 383using var host = new HostBuilder() 460using var host = new HostBuilder() 513using var host = new HostBuilder() 539using var host = new HostBuilder() 611using var host = new HostBuilder() 662using var host = new HostBuilder() 697using var host = new HostBuilder() 738using var host = new HostBuilder() 997using var host = new HostBuilder() 1051using var host = new HostBuilder() 1121using var host = new HostBuilder()
StatusCodeMiddlewareTest.cs (6)
22using var host = new HostBuilder() 76using var host = new HostBuilder() 137using var host = new HostBuilder() 200using var host = new HostBuilder() 320using var host = new HostBuilder() 358using var host = new HostBuilder()
Microsoft.AspNetCore.HeaderPropagation.Tests (3)
HeaderPropagationIntegrationTest.cs (3)
24using var host = new HostBuilder() 153using var host = new HostBuilder() 196var host = new HostBuilder()
Microsoft.AspNetCore.HostFiltering.Tests (6)
HostFilteringMiddlewareTests.cs (6)
21using var host = new HostBuilder() 42using var host = new HostBuilder() 83using var host = new HostBuilder() 139using var host = new HostBuilder() 191using var host = new HostBuilder() 231using var host = new HostBuilder()
Microsoft.AspNetCore.Hosting.Tests (10)
GenericWebHostBuilderTests.cs (5)
22using var host = new HostBuilder() 35using var host = new HostBuilder() 48using var host = new HostBuilder() 72using var host = new HostBuilder() 108using var host = new HostBuilder()
WebHostBuilderTests.cs (5)
1002var builder = new GenericWebHostBuilderWrapper(new HostBuilder()) 1014var hostBuilder = new HostBuilder() 1028var hostBuilder = new HostBuilder() 1492new GenericWebHostBuilderWrapper(new HostBuilder()) 1511new GenericWebHostBuilderWrapper(new HostBuilder()).UseConfiguration(config)
Microsoft.AspNetCore.Http.Connections.Tests (4)
HttpConnectionDispatcherTests.cs (2)
3495using var host = new HostBuilder() 3643return new HostBuilder()
MapConnectionHandlerTests.cs (2)
486return new HostBuilder() 507return new HostBuilder()
Microsoft.AspNetCore.HttpLogging.Tests (2)
HttpLoggingMiddlewareTests.cs (2)
1906var builder = new HostBuilder() 2007var builder = new HostBuilder()
Microsoft.AspNetCore.HttpOverrides.Tests (40)
CertificateForwardingTest.cs (5)
40using var host = new HostBuilder() 78using var host = new HostBuilder() 117using var host = new HostBuilder() 155using var host = new HostBuilder() 193using var host = new HostBuilder()
ForwardedHeadersMiddlewareTest.cs (29)
20using var host = new HostBuilder() 55using var host = new HostBuilder() 109using var host = new HostBuilder() 152using var host = new HostBuilder() 218using var host = new HostBuilder() 257using var host = new HostBuilder() 286using var host = new HostBuilder() 352using var host = new HostBuilder() 437using var host = new HostBuilder() 487using var host = new HostBuilder() 538using var host = new HostBuilder() 573using var host = new HostBuilder() 615using var host = new HostBuilder() 664using var host = new HostBuilder() 721using var host = new HostBuilder() 763using var host = new HostBuilder() 805using var host = new HostBuilder() 849using var host = new HostBuilder() 898using var host = new HostBuilder() 933using var host = new HostBuilder() 968using var host = new HostBuilder() 1025using var host = new HostBuilder() 1053using var host = new HostBuilder() 1093using var host = new HostBuilder() 1137using var host = new HostBuilder() 1179using var host = new HostBuilder() 1215using var host = new HostBuilder() 1254using var host = new HostBuilder() 1304using var host = new HostBuilder()
HttpMethodOverrideMiddlewareTest.cs (6)
18using var host = new HostBuilder() 49using var host = new HostBuilder() 79using var host = new HostBuilder() 109using var host = new HostBuilder() 147using var host = new HostBuilder() 184using var host = new HostBuilder()
Microsoft.AspNetCore.HttpsPolicy.Tests (18)
HstsMiddlewareTests.cs (8)
42using var host = new HostBuilder() 83using var host = new HostBuilder() 129using var host = new HostBuilder() 179using var host = new HostBuilder() 229using var host = new HostBuilder() 284using var host = new HostBuilder() 336using var host = new HostBuilder() 383using var host = new HostBuilder()
HttpsPolicyTests.cs (1)
28using var host = new HostBuilder()
HttpsRedirectionMiddlewareTests.cs (9)
27using var host = new HostBuilder() 77using var host = new HostBuilder() 133using var host = new HostBuilder() 189using var host = new HostBuilder() 238using var host = new HostBuilder() 285using var host = new HostBuilder() 324using var host = new HostBuilder() 377using var host = new HostBuilder() 419using var host = new HostBuilder()
Microsoft.AspNetCore.Identity.InMemory.Test (1)
FunctionalTest.cs (1)
293var host = new HostBuilder()
Microsoft.AspNetCore.Localization.FunctionalTests (2)
LocalizationSampleTest.cs (1)
19using var host = new HostBuilder()
LocalizationTest.cs (1)
98using var host = new HostBuilder()
Microsoft.AspNetCore.Localization.Routing.Tests (3)
RouteDataRequestCultureProviderTest.cs (3)
31using var host = new HostBuilder() 95using var host = new HostBuilder() 150using var host = new HostBuilder()
Microsoft.AspNetCore.Localization.Tests (19)
AcceptLanguageHeaderRequestCultureProviderTest.cs (4)
18using var host = new HostBuilder() 59using var host = new HostBuilder() 99using var host = new HostBuilder() 140using var host = new HostBuilder()
CookieRequestCultureProviderTest.cs (5)
22using var host = new HostBuilder() 75using var host = new HostBuilder() 124using var host = new HostBuilder() 175using var host = new HostBuilder() 235using var host = new HostBuilder()
CustomRequestCultureProviderTest.cs (1)
19using var host = new HostBuilder()
QueryStringRequestCultureProviderTest.cs (8)
18using var host = new HostBuilder() 60using var host = new HostBuilder() 94using var host = new HostBuilder() 135using var host = new HostBuilder() 176using var host = new HostBuilder() 218using var host = new HostBuilder() 260using var host = new HostBuilder() 307using var host = new HostBuilder()
RequestLocalizationMiddlewareTest.cs (1)
30using var host = new HostBuilder()
Microsoft.AspNetCore.MiddlewareAnalysis.Tests (1)
MiddlewareAnalysisTests.cs (1)
20using var host = new HostBuilder()
Microsoft.AspNetCore.OutputCaching.Tests (1)
TestUtils.cs (1)
153yield return new HostBuilder()
Microsoft.AspNetCore.RequestDecompression.Tests (6)
RequestDecompressionMiddlewareTests.cs (6)
205using var host = new HostBuilder() 275using var host = new HostBuilder() 351using var host = new HostBuilder() 446using var host = new HostBuilder() 532using var host = new HostBuilder() 690using var host = new HostBuilder()
Microsoft.AspNetCore.ResponseCaching.Tests (1)
TestUtils.cs (1)
162yield return new HostBuilder()
Microsoft.AspNetCore.ResponseCompression.Tests (17)
ResponseCompressionMiddlewareTest.cs (17)
150using var host = new HostBuilder() 309using var host = new HostBuilder() 442using var host = new HostBuilder() 503using var host = new HostBuilder() 566using var host = new HostBuilder() 624using var host = new HostBuilder() 670using var host = new HostBuilder() 715using var host = new HostBuilder() 774using var host = new HostBuilder() 834using var host = new HostBuilder() 904using var host = new HostBuilder() 968using var host = new HostBuilder() 1027using var host = new HostBuilder() 1077using var host = new HostBuilder() 1127using var host = new HostBuilder() 1178using var host = new HostBuilder() 1243using var host = new HostBuilder()
Microsoft.AspNetCore.Rewrite.Tests (65)
ApacheModRewrite\ModRewriteMiddlewareTest.cs (17)
19using var host = new HostBuilder() 45using var host = new HostBuilder() 71using var host = new HostBuilder() 96using var host = new HostBuilder() 121using var host = new HostBuilder() 146using var host = new HostBuilder() 171using var host = new HostBuilder() 198using var host = new HostBuilder() 229using var host = new HostBuilder() 255using var host = new HostBuilder() 281using var host = new HostBuilder() 307using var host = new HostBuilder() 334using var host = new HostBuilder() 362using var host = new HostBuilder() 390using var host = new HostBuilder() 414using var host = new HostBuilder() 444using var host = new HostBuilder()
IISUrlRewrite\MiddleWareTests.cs (20)
29using var host = new HostBuilder() 61using var host = new HostBuilder() 97using var host = new HostBuilder() 129using var host = new HostBuilder() 165using var host = new HostBuilder() 200using var host = new HostBuilder() 234using var host = new HostBuilder() 268using var host = new HostBuilder() 305using var host = new HostBuilder() 342using var host = new HostBuilder() 379using var host = new HostBuilder() 413using var host = new HostBuilder() 455using var host = new HostBuilder() 491using var host = new HostBuilder() 527using var host = new HostBuilder() 564using var host = new HostBuilder() 600using var host = new HostBuilder() 645using var host = new HostBuilder() 677using var host = new HostBuilder() 732using var host = new HostBuilder()
MiddlewareTests.cs (28)
20using var host = new HostBuilder() 50using var host = new HostBuilder() 82using var host = new HostBuilder() 114using var host = new HostBuilder() 153using var host = new HostBuilder() 180using var host = new HostBuilder() 211using var host = new HostBuilder() 239using var host = new HostBuilder() 266using var host = new HostBuilder() 308using var host = new HostBuilder() 340using var host = new HostBuilder() 366using var host = new HostBuilder() 393using var host = new HostBuilder() 422using var host = new HostBuilder() 451using var host = new HostBuilder() 476using var host = new HostBuilder() 511using var host = new HostBuilder() 539using var host = new HostBuilder() 568using var host = new HostBuilder() 593using var host = new HostBuilder() 618using var host = new HostBuilder() 643using var host = new HostBuilder() 678using var host = new HostBuilder() 705using var host = new HostBuilder() 738using var host = new HostBuilder() 766using var host = new HostBuilder() 791using var host = new HostBuilder() 820using var host = new HostBuilder()
Microsoft.AspNetCore.Routing.FunctionalTests (31)
EndpointRoutingIntegrationTest.cs (10)
33using var host = new HostBuilder() 65using var host = new HostBuilder() 97using var host = new HostBuilder() 129using var host = new HostBuilder() 160using var host = new HostBuilder() 190using var host = new HostBuilder() 221using var host = new HostBuilder() 252using var host = new HostBuilder() 284using var host = new HostBuilder() 320using var host = new HostBuilder()
MinimalFormTests.cs (15)
26using var host = new HostBuilder() 76using var host = new HostBuilder() 136using var host = new HostBuilder() 176using var host = new HostBuilder() 221using var host = new HostBuilder() 252using var host = new HostBuilder() 297using var host = new HostBuilder() 394using var host = new HostBuilder() 437using var host = new HostBuilder() 505using var host = new HostBuilder() 554using var host = new HostBuilder() 606using var host = new HostBuilder() 658using var host = new HostBuilder() 704using var host = new HostBuilder() 731using var host = new HostBuilder()
RouteHandlerTest.cs (2)
24using var host = new HostBuilder() 68using var host = new HostBuilder()
RoutingTestFixture.cs (1)
17var host = new HostBuilder()
ShortCircuitTests.cs (2)
18using var host = new HostBuilder() 61using var host = new HostBuilder()
WebHostBuilderExtensionsTest.cs (1)
79using var host = new HostBuilder()
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (22)
DelegateTests.cs (1)
24var builder = new HostBuilder();
Http2Tests.cs (20)
42await new HostBuilder() 75await new HostBuilder() 125await new HostBuilder() 175await new HostBuilder() 240await new HostBuilder() 292await new HostBuilder() 328await new HostBuilder() 372await new HostBuilder() 411await new HostBuilder() 450await new HostBuilder() 523await new HostBuilder() 557await new HostBuilder() 589await new HostBuilder() 674await new HostBuilder() 716await new HostBuilder() 763await new HostBuilder() 815await new HostBuilder() 869await new HostBuilder() 917await new HostBuilder() 967await new HostBuilder()
Utilities.cs (1)
89var builder = new HostBuilder()
Microsoft.AspNetCore.Server.IISIntegration.Tests (13)
IISExtensionTests.cs (1)
21using var host = new HostBuilder()
IISMiddlewareTests.cs (12)
29using var host = new HostBuilder() 66using var host = new HostBuilder() 107using var host = new HostBuilder() 166using var host = new HostBuilder() 211using var host = new HostBuilder() 256using var host = new HostBuilder() 296using var host = new HostBuilder() 329using var host = new HostBuilder() 358using var host = new HostBuilder() 396using var host = new HostBuilder() 438using var host = new HostBuilder() 495using var host = new HostBuilder()
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (2)
InMemoryTransportBenchmark.cs (1)
45_host = new HostBuilder()
NamedPipesTransportBenchmark.cs (1)
43_host = new HostBuilder()
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (7)
WebHostTests.cs (7)
48var builder = new HostBuilder() 103var builder = new HostBuilder() 143var builder = new HostBuilder() 180var builder = new HostBuilder() 218var builder = new HostBuilder() 285var builder = new HostBuilder() 384var builder = new HostBuilder()
Microsoft.AspNetCore.Session.Tests (21)
SessionTests.cs (21)
28using var host = new HostBuilder() 64using var host = new HostBuilder() 112using var host = new HostBuilder() 165using var host = new HostBuilder() 214using var host = new HostBuilder() 273using var host = new HostBuilder() 335using var host = new HostBuilder() 382using var host = new HostBuilder() 447using var host = new HostBuilder() 512using var host = new HostBuilder() 554using var host = new HostBuilder() 603using var host = new HostBuilder() 644using var host = new HostBuilder() 694using var host = new HostBuilder() 743using var host = new HostBuilder() 791using var host = new HostBuilder() 845using var host = new HostBuilder() 905using var host = new HostBuilder() 971using var host = new HostBuilder() 1035using var host = new HostBuilder() 1091using var host = new HostBuilder()
Microsoft.AspNetCore.SignalR.Tests (2)
MapSignalRTests.cs (2)
36var builder = new HostBuilder(); 397return new HostBuilder()
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
src\Shared\SignalR\InProcessTestServer.cs (1)
101_host = new HostBuilder()
Microsoft.AspNetCore.StaticFiles.FunctionalTests (8)
FallbackStaticFileTest.cs (2)
23using var host = new HostBuilder() 76using var host = new HostBuilder()
StaticFileMiddlewareTests.cs (6)
24using var host = new HostBuilder() 47using var host = new HostBuilder() 93using var host = new HostBuilder() 138using var host = new HostBuilder() 180using var host = new HostBuilder() 242using var host = new HostBuilder()
Microsoft.AspNetCore.StaticFiles.Tests (4)
StaticFileMiddlewareTests.cs (3)
25using var host = new HostBuilder() 58using var host = new HostBuilder() 90using var host = new HostBuilder()
StaticFilesTestServer.cs (1)
24var host = new HostBuilder()
Microsoft.AspNetCore.TestHost.Tests (9)
RequestLifetimeTests.cs (1)
99return new HostBuilder()
ResponseBodyTests.cs (1)
159return new HostBuilder()
ResponseResetTests.cs (1)
162return new HostBuilder()
TestServerTests.cs (6)
26using var host = new HostBuilder() 46using var host = await new HostBuilder() 62using var host = await new HostBuilder() 78using var host = await new HostBuilder() 343using var host = await new HostBuilder() 366using var host = await new HostBuilder()
Microsoft.AspNetCore.WebSockets.Tests (2)
Http2WebSocketTests.cs (1)
19using var host = new HostBuilder()
KestrelWebSocketHelpers.cs (1)
54var host = new HostBuilder()
Microsoft.Extensions.Hosting (1)
Host.cs (1)
55HostBuilder builder = new();
Microsoft.Extensions.Hosting.Testing (1)
FakeHostBuilder.cs (1)
20: this(new HostBuilder(), options)
Microsoft.Extensions.Hosting.Testing.Tests (3)
HostingFakesExtensionsTests.cs (3)
49using var host = new HostBuilder().Build(); 71using var host = new HostBuilder().Build(); 100var exception = Record.Exception(() => new HostBuilder().Configure(null!));
MiddlewareAnalysisSample (1)
Startup.cs (1)
81var host = new HostBuilder()
NativeIISSample (1)
Startup.cs (1)
143var host = new HostBuilder()
PlaintextApp (1)
Startup.cs (1)
38var host = new HostBuilder()
QueueSharing (1)
Program.cs (1)
40var host = new HostBuilder()
RequestDecompressionSample (1)
Startup.cs (1)
33var host = new HostBuilder()
ResponseCachingSample (1)
Startup.cs (1)
33var host = new HostBuilder()
ResponseCompressionSample (1)
Startup.cs (1)
68var host = new HostBuilder()
RewriteSample (1)
Startup.cs (1)
42var host = new HostBuilder()
RoutingSandbox (1)
Program.cs (1)
55return new HostBuilder()
RoutingWebSite (1)
Program.cs (1)
57return new HostBuilder()
SampleStartups (6)
StartupBlockingOnStart.cs (1)
37var host = new HostBuilder()
StartupConfigureAddresses.cs (1)
30var host = new HostBuilder()
StartupExternallyControlled.cs (1)
33_host = new HostBuilder()
StartupFullControl.cs (1)
24var host = new HostBuilder()
StartupHelloWorld.cs (1)
27var host = new HostBuilder()
StartupInjection.cs (1)
25var host = new HostBuilder()
SessionSample (1)
Startup.cs (1)
79var host = new HostBuilder()
SignalR.Client.FunctionalTestApp (1)
Program.cs (1)
24var hostBuilder = new HostBuilder()
Sockets.BindTests (1)
src\Servers\Kestrel\test\Sockets.FunctionalTests\TransportSelector.cs (1)
16return new HostBuilder()
Sockets.FunctionalTests (1)
TransportSelector.cs (1)
16return new HostBuilder()
StaticFileSample (1)
Startup.cs (1)
26var host = new HostBuilder()
StatusCodePagesSample (1)
Startup.cs (1)
109var host = new HostBuilder()
SystemdTestApp (1)
Startup.cs (1)
46var hostBuilder = new HostBuilder()
WelcomePageSample (1)
Startup.cs (1)
15var host = new HostBuilder()
WsFedSample (1)
Program.cs (1)
14var host = new HostBuilder()
15 references to HostBuilder
Microsoft.AspNetCore.Hosting.Tests (2)
Fakes\GenericWebHostBuilderWrapper.cs (2)
15private readonly HostBuilder _hostBuilder; 17internal GenericWebHostBuilderWrapper(HostBuilder hostBuilder)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
DelegateTests.cs (1)
24var builder = new HostBuilder();
Microsoft.AspNetCore.SignalR.Tests (1)
MapSignalRTests.cs (1)
36var builder = new HostBuilder();
Microsoft.Extensions.Hosting (11)
Host.cs (5)
16/// Initializes a new instance of the <see cref="HostBuilder"/> class with pre-configured defaults. 19/// The following defaults are applied to the returned <see cref="HostBuilder"/>: 35/// Initializes a new instance of the <see cref="HostBuilder"/> class with pre-configured defaults. 38/// The following defaults are applied to the returned <see cref="HostBuilder"/>: 55HostBuilder builder = new();
HostApplicationBuilder.cs (5)
164(HostingEnvironment hostingEnvironment, PhysicalFileProvider physicalFileProvider) = HostBuilder.CreateHostingEnvironment(Configuration); 176HostBuilder.PopulateServiceCollection( 240using DiagnosticListener diagnosticListener = HostBuilder.LogHostBuilding(this); 248return HostBuilder.ResolveHost(_appServices, diagnosticListener); 300!string.Equals(previousContentRootPath, HostBuilder.ResolveContentRootPath(currentContentRootConfig, AppContext.BaseDirectory), StringComparison.OrdinalIgnoreCase))
HostBuilder.cs (1)
43/// Initializes a new instance of <see cref="HostBuilder"/>.