208 references to UseStartup
ApiExplorerWebSite (1)
Startup.cs (1)
59.UseStartup<Startup>();
ApplicationModelWebSite (1)
Startup.cs (1)
46.UseStartup<Startup>()
AutobahnTestApp (1)
Program.cs (1)
25.UseStartup<Startup>();
AzureAppServicesHostingStartupSample (1)
Startup.cs (1)
64.UseStartup<Startup>();
AzureAppServicesSample (1)
Startup.cs (1)
76.UseStartup<Startup>();
BasicLinkedApp (1)
Program.cs (1)
42}).UseStartup<Startup>();
BasicWebSite (1)
Program.cs (1)
15.UseStartup<StartupWithoutEndpointRouting>()
Benchmarks (2)
Program.cs (2)
40.UseStartup<StartupUsingEndpointRouting>() 50.UseStartup<StartupUsingRouter>()
blazor-devserver (1)
Server\Program.cs (1)
50webBuilder.UseStartup<Startup>();
BlazorServerApp (1)
Program.cs (1)
17webBuilder.UseStartup<Startup>();
Certificate.Optional.Sample (1)
Program.cs (1)
30webBuilder.UseStartup<Startup>();
Certificate.Sample (1)
Program.cs (1)
19webBuilder.UseStartup<Startup>()
ClaimsTransformation (1)
Program.cs (1)
27.UseStartup<Startup>();
ConcurrencyLimiterSample (1)
Startup.cs (1)
37.UseStartup<Startup>();
ControllersFromServicesWebSite (1)
Startup.cs (1)
73.UseStartup<Startup>()
CookiePolicySample (1)
Program.cs (1)
17.UseStartup<Startup>();
Cookies (1)
Program.cs (1)
27.UseStartup<Startup>();
CookieSessionSample (1)
Program.cs (1)
17.UseStartup<Startup>();
CorsMiddlewareWebSite (1)
Startup.cs (1)
26.UseStartup<Startup>();
CorsWebSite (1)
Program.cs (1)
19.UseStartup<Startup>()
CustomAuthorizationFailureResponse (1)
Program.cs (1)
20webBuilder.UseStartup<Startup>();
CustomPolicyProvider (1)
Program.cs (1)
18.UseStartup<Startup>();
DatabaseErrorPageSample (1)
Startup.cs (1)
37.UseStartup<Startup>();
DefaultBuilder.SampleApp (3)
Program.cs (3)
78.UseStartup<Startup>() 94builder.UseStartup<Startup>(); 110webBuilder.UseStartup<Startup>();
DeveloperExceptionPageSample (1)
Startup.cs (1)
56.UseStartup<Startup>();
DynamicSchemes (1)
Program.cs (1)
27.UseStartup<Startup>();
ErrorPageMiddlewareWebSite (1)
Startup.cs (1)
36.UseStartup<Startup>()
ExceptionHandlerSample (1)
Program.cs (1)
16.UseStartup<Startup>();
FilesWebSite (1)
Startup.cs (1)
35.UseStartup<Startup>()
FormatterWebSite (1)
Program.cs (1)
19.UseStartup<Startup>()
GenericHostWebSite (1)
Program.cs (1)
18.UseStartup<Startup>()
HeaderPropagationSample (1)
Program.cs (1)
18webBuilder.UseStartup<Startup>();
HostedBlazorWebassemblyApp.Server (1)
Program.cs (1)
26webBuilder.UseStartup<Startup>();
HostFilteringSample (1)
Program.cs (1)
31.UseStartup<Startup>();
HotAddSample (1)
Startup.cs (1)
110.UseStartup<Startup>()
HtmlGenerationWebSite (2)
Startup.cs (1)
60.UseStartup<Startup>()
StartupWithCultureReplace.cs (1)
37.UseStartup<StartupWithCultureReplace>()
Http2SampleApp (1)
Program.cs (1)
66.UseStartup<Startup>();
Http3SampleApp (1)
Program.cs (1)
114.UseStartup<Startup>();
HttpLogging.Sample (1)
Program.cs (1)
31webBuilder.UseStartup<Startup>();
HttpOverridesSample (1)
Startup.cs (1)
41.UseStartup<Startup>();
HttpsPolicySample (1)
Startup.cs (1)
66.UseStartup<Startup>();
Identity.DefaultUI.WebSite (1)
Program.cs (1)
19webBuilder.UseStartup<Startup>();
Identity.ExternalClaims (1)
Program.cs (1)
25.UseStartup<Startup>();
IdentitySample.DefaultUI (1)
Program.cs (1)
21webBuilder.UseStartup<Startup>();
IdentitySample.Mvc (1)
Program.cs (1)
20.UseStartup<Startup>();
IISSample (1)
Startup.cs (1)
100.UseStartup<Startup>();
InProcessWebSite (4)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Program.cs (4)
61.UseStartup<Startup>() 73.UseStartup<Startup>() 141.UseStartup<ThrowingStartup>() 201.UseStartup<Startup>()
IntegrationTestsWebsite (1)
Program.cs (1)
17webBuilder.UseStartup<Startup>();
InteropWebsite (1)
Program.cs (1)
65webBuilder.UseStartup<Startup>();
JwtBearerSample (1)
Program.cs (1)
14.UseStartup<Startup>();
JwtSample (1)
Program.cs (1)
23.UseStartup<Startup>();
Kestrel.SampleApp (1)
Startup.cs (1)
170.UseStartup<Startup>();
LargeResponseApp (1)
Startup.cs (1)
52.UseStartup<Startup>();
LocalizationSample (1)
Startup.cs (1)
144.UseStartup<Startup>();
Logging.W3C.Sample (1)
Program.cs (1)
17webBuilder.UseStartup<Startup>();
Microsoft.AspNetCore (1)
WebHost.cs (1)
304CreateDefaultBuilder(args).UseStartup<TStartup>();
Microsoft.AspNetCore.DataProtection.Tests (3)
HostingTests.cs (3)
29.UseStartup<TestStartup>() 62.ConfigureWebHost(b => b.UseStartup<TestStartup>()); 90.ConfigureWebHost(b => b.UseStartup<TestStartup>());
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (4)
HealthCheckMiddlewareSampleTest.cs (4)
21.UseStartup<HealthChecksSample.BasicStartup>(); 43.UseStartup<HealthChecksSample.CustomWriterStartup>(); 66.UseStartup<HealthChecksSample.LivenessProbeStartup>(); 88.UseStartup<HealthChecksSample.LivenessProbeStartup>();
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Logging\AcceptanceTests.cs (1)
122.UseStartup<TStartup>()
Microsoft.AspNetCore.Hosting.Tests (32)
WebHostBuilderTests.cs (30)
56var host = builder.UseServer(server).UseStartup<StartupStaticCtorThrows>().Build(); 87.UseStartup<StartupCtorThrows>() 134var host = builder.UseServer(server).UseStartup<StartupCtorThrows>().Build(); 147var host = builder.UseServer(server).UseStartup<StartupThrowTypeLoadException>().Build(); 160var host = builder.UseServer(server).UseStartup<StartupCtorThrows>().Build(); 177var host = builder.UseServer(server).UseStartup<StartupConfigureServicesThrows>().Build(); 190var host = builder.UseServer(server).UseStartup<StartupConfigureServicesThrows>().Build(); 204.UseStartup<StartupNoServices>(); 280.UseStartup<StartupNoServices>(); 334.UseStartup<StartupNoServices>(); 354.UseStartup<StartupNoServices>(); 365.UseStartup<StartupNoServices>(); 385.UseStartup<StartupNoServices>(); 406.UseStartup<StartupNoServices>(); 422.UseStartup<StartupBoom>(); 439.UseStartup<StartupWithResolvedDisposableThatThrows>(); 452.UseStartup<StartupBoom>(); 494.UseStartup<StartupNoServices>(); 520.UseStartup<StartupNoServices>(); 546.UseStartup<StartupNoServices>(); 581.UseStartup<StartupNoServices>(); 747.UseStartup<StartupNoServicesNoInterface>() 838.UseStartup<StartupNoServices>() 876.UseStartup<StartupWithILoggerFactory>() 949.UseStartup<StartupVerifyServiceA>() 977.UseStartup<StartupWithExternalServices>() 1003.UseStartup<StartupNoServices>(); 1017builder.UseStartup<StartupNoServices>(); 1031builder.UseStartup<StartupWithBuiltConfigureServices>(); 1123.UseStartup<StartupCheckConfig>()
WebHostTests.cs (2)
926.UseStartup<CountStartup>() 988.UseStartup<BadConfigureServicesStartup>();
Microsoft.AspNetCore.Identity.FunctionalTests (1)
Infrastructure\ServerFactory.cs (1)
42builder.UseStartup<TStartup>();
Microsoft.AspNetCore.Mvc.FunctionalTests (51)
ApiBehaviorTest.cs (2)
37builder.UseStartup<TStartup>(); 423builder.UseStartup<BasicWebSite.StartupWithCustomInvalidModelStateFactory>();
AsyncDisposalTest.cs (1)
33builder.UseStartup<BasicWebSite.Startup>()
AuthMiddlewareAndFilterTestBase.cs (1)
30private static void ConfigureWebHostBuilder(IWebHostBuilder builder) => builder.UseStartup<TStartup>();
AuthMiddlewareUsingRequireAuthTest.cs (1)
30builder.UseStartup<SecurityWebSite.StartupWithRequireAuth>();
ClientValidationOptionsTests.cs (1)
32.WithWebHostBuilder(whb => whb.UseStartup<RazorPagesWebSite.StartupWithClientValidationDisabled>())
ConsumesAttributeTestsBase.cs (1)
35builder.UseStartup<TStartup>();
ControllerEndpointFiltersTest.cs (1)
32private static void ConfigureWebHostBuilder(IWebHostBuilder builder) => builder.UseStartup<StartupForEndpointFilters>();
CorsTestsBase.cs (1)
31builder.UseStartup<TStartup>();
CustomValueProviderTest.cs (1)
24.WithWebHostBuilder(b => b.UseStartup<BasicWebSite.StartupWithCustomValueProvider>())
DataAnnotationTests.cs (1)
23builder.UseStartup<StartupDataAnnotations>();
ErrorPageTests.cs (2)
33.WithWebHostBuilder(b => b.UseStartup<ErrorPageMiddlewareWebSite.Startup>()); 52var factory = Factory.WithWebHostBuilder(b => b.UseStartup<ErrorPageMiddlewareWebSite.Startup>());
GlobalAuthorizationFilterEndpointRoutingTest.cs (1)
12builder.UseStartup<SecurityWebSite.StartupWithGlobalDenyAnonymousFilter>();
GlobalAuthorizationFilterUseMvcTest.cs (1)
12builder.UseStartup<SecurityWebSite.StartupWithGlobalDenyAnonymousFilterWithUseMvc>();
HtmlGenerationTest.cs (2)
44builder.UseStartup<HtmlGenerationWebSite.Startup>(); 217.WithWebHostBuilder(builder => builder.UseStartup<HtmlGenerationWebSite.StartupWithoutEndpointRouting>())
HtmlGenerationWithCultureTest.cs (2)
28.WithWebHostBuilder(builder => builder.UseStartup<StartupWithCultureReplace>()); 141.UseStartup<StartupWithCultureReplace>()
InputParentValidationTests.cs (1)
28Factory = new MvcTestFixture<TStartup>(LoggerFactory).WithWebHostBuilder(builder => builder.UseStartup<TStartup>());
JsonInputFormatterTestBase.cs (1)
21builder.UseStartup<TStartup>();
JsonOutputFormatterTestBase.cs (1)
22builder.UseStartup<TStartup>();
JsonResultWithNewtonsoftJsonTest.cs (1)
25.WithWebHostBuilder(b => b.UseStartup<BasicWebSite.StartupWithNewtonsoftJson>());
JsonResultWithSystemTextJsonTest.cs (1)
25.WithWebHostBuilder(b => b.UseStartup<BasicWebSite.StartupWithSystemTextJson>());
LinkGeneratorTest.cs (1)
18builder.UseStartup<RoutingWebSite.StartupForLinkGenerator>();
LinkParserTest.cs (1)
19builder.UseStartup<RoutingWebSite.StartupForLinkGenerator>();
PageAsyncDisposalTest.cs (1)
19builder.UseStartup<RazorPagesWebSite.StartupWithoutEndpointRouting>()
RazorBuildTest.cs (1)
28.WithWebHostBuilder(b => b.UseStartup<RazorBuildWebSite.Startup>())
RazorPageModelTest.cs (1)
17builder.UseStartup<RazorPagesWebSite.StartupWithoutEndpointRouting>();
RazorPagesNamespaceTest.cs (1)
16builder.UseStartup<RazorPagesWebSite.StartupWithoutEndpointRouting>();
RazorPagesTest.cs (1)
24builder.UseStartup<RazorPagesWebSite.StartupWithoutEndpointRouting>();
RazorPagesViewSearchTest.cs (1)
16builder.UseStartup<RazorPagesWebSite.StartupWithoutEndpointRouting>();
RazorRuntimeCompilationHostingStartupTest.cs (1)
25.WithWebHostBuilder(b => b.UseStartup<RazorBuildWebSite.StartupWithHostingStartup>())
ReadFromDisconnectedClientTest.cs (1)
20builder.UseStartup<BasicWebSite.StartupWhereReadingRequestBodyThrows>();
RequestFormLimitsTest.cs (1)
17builder.UseStartup<BasicWebSite.StartupRequestLimitSize>();
RequestServicesTestBase.cs (1)
20builder.UseStartup<TStartup>();
RequestSizeLimitTest.cs (1)
18builder.UseStartup<BasicWebSite.StartupRequestLimitSize>();
RespectBrowserAcceptHeaderTests.cs (1)
21builder.UseStartup<FormatterWebSite.StartupWithRespectBrowserAcceptHeader>();
RoutingAcrossPipelineBranchesTest.cs (1)
18private static void ConfigureWebHostBuilder(IWebHostBuilder builder) => builder.UseStartup<RoutingWebSite.StartupRoutingDifferentBranches>();
RoutingDynamicOrderTest.cs (1)
18private static void ConfigureWebHostBuilder(IWebHostBuilder builder) => builder.UseStartup<RoutingWebSite.StartupForDynamicOrder>();
RoutingDynamicTest.cs (3)
17private static void ConfigureWebHostBuilder(IWebHostBuilder builder) => builder.UseStartup<RoutingWebSite.StartupForDynamic>(); 147var client = Factory.WithWebHostBuilder(b => b.UseStartup<StartupForDynamicAndRazorPages>()).CreateDefaultClient(); 164var client = Factory.WithWebHostBuilder(b => b.UseStartup<StartupForDynamicAndRazorPages>()).CreateDefaultClient();
RoutingFallbackTest.cs (1)
18private static void ConfigureWebHostBuilder(IWebHostBuilder builder) => builder.UseStartup<RoutingWebSite.StartupForFallback>();
RoutingGroupsTest.cs (1)
19private static void ConfigureWebHostBuilder(IWebHostBuilder builder) => builder.UseStartup<StartupForGroups>();
RoutingGroupsWithMetadataTest.cs (1)
18private static void ConfigureWebHostBuilder(IWebHostBuilder builder) => builder.UseStartup<StartupForRouteGroupsWithMetadata>();
RoutingTestsBase.cs (1)
18builder.UseStartup<TStartup>();
RoutingWithoutRazorPagesTestsBase.cs (1)
18builder.UseStartup<TStartup>();
TempDataInCookiesUsingCookieConsentTest.cs (1)
34builder.UseStartup<BasicWebSite.StartupWithCookieTempDataProviderAndCookieConsent>();
TestingInfrastructureInheritanceTests.cs (1)
112builder.UseStartup<GenericHostWebSite.Startup>()
VersioningTestsBase.cs (1)
18builder.UseStartup<TStartup>();
Microsoft.AspNetCore.TestHost.Tests (4)
TestServerTests.cs (4)
126.UseStartup<ThirdPartyContainerStartup>() 253var builder = new WebHostBuilder().UseStartup<CustomContainerStartup>(); 700.UseStartup<TestStartup>(); 711.UseStartup<TestStartup>()
Microsoft.AspNetCore.Testing (1)
ServiceFakesWebHostExtensions.cs (1)
25return builder.UseStartup<FakeStartup>();
Microsoft.AspNetCore.Testing.Tests (4)
FakesExtensionsTests.cs (4)
53.ConfigureWebHost(webHost => webHost.UseStartup<Startup>().ListenHttpsOnAnyPort()) 74.ConfigureWebHost(webHost => webHost.UseStartup<Startup>().ListenHttpsOnAnyPort(certificate)) 159.ConfigureWebHost(webHost => webHost.UseStartup<Startup>().ListenHttpsOnAnyPort()) 171.ConfigureWebHost(webHost => webHost.UseStartup<Startup>().ListenHttpOnAnyPort())
Microsoft.AspNetCore.Tests (1)
WebApplicationTests.cs (1)
1833var ex2 = Assert.Throws<NotSupportedException>(() => builder.WebHost.UseStartup<MyStartup>());
MiddlewareAnalysisSample (1)
Startup.cs (1)
92.UseStartup<Startup>();
Mvc.RoutingWebSite (1)
Program.cs (1)
19.UseStartup<StartupForFallback>()
MvcSandbox (1)
Startup.cs (1)
61.UseStartup<Startup>();
NativeIISSample (1)
Startup.cs (1)
150.UseStartup<Startup>();
Negotiate.Client (1)
Program.cs (1)
20webBuilder.UseStartup<Startup>();
Negotiate.Server (1)
Program.cs (1)
27webBuilder.UseStartup<Startup>();
NegotiateAuthSample (1)
Program.cs (1)
27webBuilder.UseStartup<Startup>();
OpenIdConnectSample (1)
Program.cs (1)
14.UseStartup<Startup>();
PathSchemeSelection (1)
Program.cs (1)
25.UseStartup<Startup>();
PlaintextApp (1)
Startup.cs (1)
47.UseStartup<Startup>();
RazorBuildWebSite (2)
Startup.cs (1)
31.UseStartup<Startup>()
StartupWithHostingStartup.cs (1)
46.UseStartup<Startup>()
RazorPagesWebSite (1)
Program.cs (1)
21.UseStartup<StartupWithBasePath>();
RazorWebSite (1)
Program.cs (1)
19.UseStartup<Startup>()
RequestDecompressionSample (1)
Startup.cs (1)
43.UseStartup<Startup>();
ResponseCachingSample (1)
Startup.cs (1)
40.UseStartup<Startup>();
ResponseCompressionSample (1)
Startup.cs (1)
78.UseStartup<Startup>();
RewriteSample (1)
Startup.cs (1)
55.UseStartup<Startup>()
SampleStartups (6)
StartupBlockingOnStart.cs (1)
43.UseStartup<StartupBlockingOnStart>();
StartupConfigureAddresses.cs (1)
36.UseStartup<StartupConfigureAddresses>()
StartupExternallyControlled.cs (1)
38.UseStartup<StartupExternallyControlled>()
StartupHelloWorld.cs (1)
32.UseStartup<StartupHelloWorld>();
StartupInjection.cs (2)
19builder.UseStartup<InjectedStartup>(); 34.UseStartup<NormalStartup>();
Sandbox (1)
Program.cs (1)
17webBuilder.UseStartup<Startup>();
SecurityWebSite (1)
Program.cs (1)
20.UseStartup<Startup>();
SelfHostServer (1)
Program.cs (1)
21webBuilder.UseStartup<Startup>()
SessionSample (1)
Startup.cs (1)
86.UseStartup<Startup>();
SignalR.Client.FunctionalTestApp (1)
Program.cs (1)
48.UseStartup<Startup>();
SignalRSamples (1)
Program.cs (1)
43.UseStartup<Startup>();
SimpleWebSite (1)
Startup.cs (1)
41.UseStartup<Startup>()
SocialSample (1)
Program.cs (1)
13.UseStartup<Startup>()
SocialWeather (1)
Program.cs (1)
23.UseStartup<Startup>();
StaticFileSample (1)
Startup.cs (1)
39.UseStartup<Startup>();
StaticFilesAuth (1)
Program.cs (1)
25.UseStartup<Startup>();
StatusCodePagesSample (1)
Startup.cs (1)
115.UseStartup<Startup>();
SystemdTestApp (1)
Startup.cs (1)
74.UseStartup<Startup>();
TagHelpersWebSite (1)
Startup.cs (1)
36.UseStartup<Startup>()
VersioningWebSite (1)
Program.cs (1)
19.UseStartup<Startup>()
Wasm.Performance.Driver (1)
Program.cs (1)
289.ConfigureWebHostDefaults(builder => builder.UseStartup<BenchmarkDriverStartup>())
WelcomePageSample (1)
Startup.cs (1)
21.UseStartup<Startup>();
WsFedSample (1)
Program.cs (1)
29.UseStartup<Startup>();
XmlFormattersWebSite (1)
Startup.cs (1)
121.UseStartup<Startup>()