189 references to UseEndpoints
ApiExplorerWebSite (1)
Startup.cs (1)
40app.UseEndpoints(endpoints =>
ApplicationModelWebSite (1)
Startup.cs (1)
26app.UseEndpoints(endpoints =>
Aspire.Dashboard.Tests (1)
Integration\MockOpenIdAuthority.cs (1)
38app.UseEndpoints(endpoints =>
BasicWebSite (9)
Startup.cs (1)
34app.UseEndpoints(endpoints =>
StartupRequestLimitSize.cs (1)
35app.UseEndpoints(endpoints =>
StartupWhereReadingRequestBodyThrows.cs (1)
28app.UseEndpoints(endpoints =>
StartupWithCookieTempDataProviderAndCookieConsent.cs (1)
27app.UseEndpoints(endpoints =>
StartupWithCustomInvalidModelStateFactory.cs (1)
44app.UseEndpoints(endpoints =>
StartupWithCustomValueProvider.cs (1)
25app.UseEndpoints((endpoints) => endpoints.MapDefaultControllerRoute());
StartupWithNewtonsoftJson.cs (1)
21app.UseEndpoints((endpoints) => endpoints.MapDefaultControllerRoute());
StartupWithSessionTempDataProvider.cs (1)
25app.UseEndpoints(endpoints =>
StartupWithSystemTextJson.cs (1)
22app.UseEndpoints((endpoints) => endpoints.MapDefaultControllerRoute());
Benchmarks (1)
StartupUsingEndpointRouting.cs (1)
22app.UseEndpoints(endpoints =>
blazor-devserver (1)
Server\Startup.cs (1)
65app.UseEndpoints(endpoints =>
BlazorServerApp (1)
Startup.cs (1)
45app.UseEndpoints(endpoints =>
Certificate.Optional.Sample (1)
Startup.cs (1)
45app.UseEndpoints(endpoints =>
Certificate.Sample (1)
Startup.cs (1)
50app.UseEndpoints(endpoints =>
ClaimsTransformation (1)
Startup.cs (1)
59app.UseEndpoints(endpoints =>
ControllersFromServicesWebSite (1)
Startup.cs (1)
56app.UseEndpoints(endpoints =>
Cookies (1)
Startup.cs (1)
66app.UseEndpoints(endpoints =>
CorsWebSite (1)
Startup.cs (1)
75app.UseEndpoints(endpoints =>
CustomAuthorizationFailureResponse (1)
Startup.cs (1)
61app.UseEndpoints(endpoints =>
CustomPolicyProvider (1)
Startup.cs (1)
44app.UseEndpoints(endpoints =>
DynamicSchemes (1)
Startup.cs (1)
53app.UseEndpoints(endpoints =>
ErrorPageMiddlewareWebSite (1)
Startup.cs (1)
19app.UseEndpoints(endpoints =>
FilesWebSite (1)
Startup.cs (1)
18app.UseEndpoints(endpoints =>
FormatterWebSite (4)
Startup.cs (1)
28app.UseEndpoints(endpoints =>
StartupWithComplexParentValidation.cs (1)
18app.UseEndpoints(endpoints =>
StartupWithJsonInputFormatter.cs (1)
23app.UseEndpoints(endpoints =>
StartupWithRespectBrowserAcceptHeader.cs (1)
20app.UseEndpoints(endpoints =>
GenericHostWebSite (1)
Startup.cs (1)
36app.UseEndpoints(endpoints =>
HeaderPropagationSample (1)
Startup.cs (1)
61app.UseEndpoints(endpoints =>
HostedBlazorWebassemblyApp.Server (1)
Startup.cs (1)
55app.UseEndpoints(endpoints =>
HtmlGenerationWebSite (1)
Startup.cs (1)
30app.UseEndpoints(endpoints =>
HttpLogging.Sample (1)
Startup.cs (1)
26app.UseEndpoints(endpoints =>
HttpStress (1)
Program.cs (1)
420app.UseEndpoints(endpoints =>
Identity.DefaultUI.WebSite (2)
NoIdentityStartup.cs (1)
63app.UseEndpoints(endpoints =>
StartupBase.cs (1)
78app.UseEndpoints(endpoints =>
Identity.ExternalClaims (1)
Startup.cs (1)
95app.UseEndpoints(endpoints =>
IdentitySample.DefaultUI (1)
Startup.cs (1)
72app.UseEndpoints(endpoints =>
IdentitySample.Mvc (1)
Startup.cs (1)
77app.UseEndpoints(endpoints =>
IntegrationTestsWebsite (1)
Startup.cs (1)
33app.UseEndpoints(endpoints =>
InteropWebsite (1)
Startup.cs (1)
49app.UseEndpoints(endpoints =>
JwtSample (1)
Startup.cs (1)
67app.UseEndpoints(endpoints =>
Logging.W3C.Sample (1)
Startup.cs (1)
29app.UseEndpoints(endpoints =>
Microsoft.AspNetCore (1)
WebApplicationBuilder.cs (1)
461app.UseEndpoints(_ => { });
Microsoft.AspNetCore.Authentication.Negotiate.Test (2)
EventTests.cs (1)
427app.UseEndpoints(ConfigureEndpoints);
NegotiateHandlerTests.cs (1)
398app.UseEndpoints(ConfigureEndpoints);
Microsoft.AspNetCore.Components.Server.Tests (4)
ComponentEndpointRouteBuilderExtensionsTest.cs (4)
28.UseEndpoints(endpoints => 47.UseEndpoints(endpoints => 67.UseEndpoints(endpoints => 106.UseEndpoints(endpoints =>
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (3)
HealthCheckEndpointRouteBuilderExtensionsTest.cs (3)
27app.UseEndpoints(endpoints => 59app.UseEndpoints(endpoints => 97app.UseEndpoints(endpoints =>
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (5)
Latency\AcceptanceTests.cs (1)
68app.UseEndpoints(endpoints =>
Latency\ChecpointAcceptanceTests.cs (2)
58app.UseEndpoints(endpoints => endpoints.MapGet("/", async context => await context.Response.WriteAsync("Hello World!"))); 99app.UseEndpoints(endpoints => endpoints.MapGet("/", async context => await context.Response.WriteAsync("Hello World!")));
Logging\AcceptanceTests.Mvc.cs (1)
48.UseEndpoints(endpoints => endpoints.MapControllers());
Logging\AcceptanceTests.Routing.cs (1)
39.UseEndpoints(endpoints =>
Microsoft.AspNetCore.Diagnostics.Tests (10)
DeveloperExceptionPageMiddlewareTest.cs (2)
102app.UseEndpoints(endpoint => 161app.UseEndpoints(endpoint =>
ExceptionHandlerTest.cs (4)
801app.UseEndpoints(endpoints => 855app.UseEndpoints(endpoints => 907app.UseEndpoints(endpoints => 965app.UseEndpoints(endpoints =>
StatusCodeMiddlewareTest.cs (4)
258app.UseEndpoints(endpoints => 294app.UseEndpoints(endpoints => 330app.UseEndpoints(endpoints => 368app.UseEndpoints(endpoints =>
Microsoft.AspNetCore.Grpc.Swagger.Tests (3)
GrpcSwaggerServiceExtensionsTests.cs (2)
35app.UseEndpoints(c => 71app.UseEndpoints(c =>
Infrastructure\OpenApiTestHelpers.cs (1)
35app.UseEndpoints(c =>
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
UsePathBaseExtensionsTests.cs (1)
152app.UseEndpoints(endpoints =>
Microsoft.AspNetCore.Http.Connections.Tests (4)
HttpConnectionDispatcherTests.cs (2)
3526app.UseEndpoints(endpoints => 3672app.UseEndpoints(endpoints =>
MapConnectionHandlerTests.cs (2)
498app.UseEndpoints(endpoints => configure(endpoints)); 520app.UseEndpoints(routes =>
Microsoft.AspNetCore.HttpLogging.Tests (2)
HttpLoggingMiddlewareTests.cs (2)
1923app.UseEndpoints(endpoint => 2029app.UseEndpoints(endpoint =>
Microsoft.AspNetCore.Rewrite.Tests (6)
MiddlewareTests.cs (6)
657app.UseEndpoints(endpoints => 855app.UseEndpoints(endpoints => 893app.UseEndpoints(endpoints => 929app.UseEndpoints(endpoints => 966app.UseEndpoints(endpoints => 1003app.UseEndpoints(endpoints =>
Microsoft.AspNetCore.Routing (2)
Builder\EndpointRoutingApplicationBuilderExtensions.cs (2)
28/// <see cref="UseEndpoints(IApplicationBuilder, Action{IEndpointRouteBuilder})"/> for the same <see cref="IApplicationBuilder"/> 76/// A call to <see cref="UseEndpoints(IApplicationBuilder, Action{IEndpointRouteBuilder})"/> must be preceded by a call to
Microsoft.AspNetCore.Routing.FunctionalTests (16)
EndpointRoutingIntegrationTest.cs (10)
41app.UseEndpoints(b => b.Map("/", TestDelegate)); 73app.UseEndpoints(b => b.Map("/", TestDelegate)); 105app.UseEndpoints(b => b.Map("/", TestDelegate).RequireAuthorization()); 136app.UseEndpoints(b => b.Map("/", TestDelegate).RequireAuthorization()); 167app.UseEndpoints(b => b.Map("/", TestDelegate).RequireAuthorization()); 198app.UseEndpoints(b => b.Map("/", TestDelegate).RequireAuthorization()); 228app.UseEndpoints(b => b.Map("/", TestDelegate).RequireAuthorization()); 260app.UseEndpoints(b => b.Map("/", TestDelegate).RequireCors(policy => policy.AllowAnyOrigin())); 292app.UseEndpoints(b => b.MapPut("/", TestDelegate).RequireCors(policy => policy.AllowAnyOrigin().AllowAnyMethod())); 328app.UseEndpoints(b => b.Map("/", TestDelegate).RequireCors(policy => policy.AllowAnyOrigin()));
MinimalFormTests.cs (2)
711app.UseEndpoints(b => b.MapPost("/", (IFormFile formFile) => "ok").DisableAntiforgery()); 738app.UseEndpoints(b => b.MapPost("/", (IFormFile formFile) => "ok").DisableAntiforgery());
RouteHandlerTest.cs (2)
31app.UseEndpoints(b => 75app.UseEndpoints(b =>
ShortCircuitTests.cs (2)
30app.UseEndpoints(b => 73app.UseEndpoints(b =>
Microsoft.AspNetCore.Routing.Tests (11)
Builder\EndpointRoutingApplicationBuilderExtensionsTest.cs (10)
45var ex = Assert.Throws<InvalidOperationException>(() => app.UseEndpoints(endpoints => { })); 92app.UseEndpoints(endpoints => 118var ex = Assert.Throws<InvalidOperationException>(() => app.UseEndpoints(endpoints => { })); 140var ex = Assert.Throws<InvalidOperationException>(() => app.Map("/Test", b => b.UseEndpoints(endpoints => { }))); 159app.UseEndpoints(endpoints => { }); 191app.UseEndpoints(builder => 198app.UseEndpoints(builder => 256b.UseEndpoints(builder => 263app.UseEndpoints(builder => 312app.UseEndpoints(endpoints =>
EndpointRoutingMiddlewareTest.cs (1)
412applicationBuilder.UseEndpoints(endpoints =>
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (2)
Startup.cs (1)
94app.UseEndpoints(endpoints =>
VersionStartup.cs (1)
43app.UseEndpoints(endpoints =>
Microsoft.AspNetCore.SignalR.Client.Tests (2)
TestServerTests.cs (2)
30app.UseEndpoints(endpoints => 82app.UseEndpoints(endpoints =>
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
Startup.cs (1)
33app.UseEndpoints(endpoints =>
Microsoft.AspNetCore.SignalR.Tests (3)
MapSignalRTests.cs (2)
53app.UseEndpoints(endpoints => 409app.UseEndpoints(endpoints => configure(endpoints));
Startup.cs (1)
88app.UseEndpoints(endpoints =>
Microsoft.AspNetCore.StaticAssets.Tests (7)
StaticAssetsIntegrationTests.cs (7)
51app.UseEndpoints(endpoints => 101app.UseEndpoints(endpoints => 153app.UseEndpoints(endpoints => 318app.UseEndpoints(endpoints => 373app.UseEndpoints(endpoints => 426app.UseEndpoints(endpoints => 609app.UseEndpoints(endpoints =>
Microsoft.AspNetCore.StaticFiles.FunctionalTests (3)
FallbackStaticFileTest.cs (2)
39app.UseEndpoints(endpoints => 91app.UseEndpoints(endpoints =>
StaticFileMiddlewareTests.cs (1)
75app.UseEndpoints(endpoints => { });
Microsoft.AspNetCore.StaticFiles.Tests (6)
DefaultFilesMiddlewareTests.cs (2)
109app.UseEndpoints(endpoints => { }); 149app.UseEndpoints(endpoints => { });
DirectoryBrowserMiddlewareTests.cs (2)
127app.UseEndpoints(endpoints => { }); 164app.UseEndpoints(endpoints => { });
StaticFileMiddlewareTests.cs (2)
355app.UseEndpoints(endpoints => { }); 403app.UseEndpoints(endpoints => { });
Microsoft.AspNetCore.Tests (9)
WebApplicationTests.cs (9)
1620var ex = Assert.Throws<InvalidOperationException>(() => app.UseEndpoints(endpoints => { })); 1734app.UseEndpoints(e => { }); 1866app.UseEndpoints(routes => 1901app.UseEndpoints(endpoints => 1907app.UseEndpoints(_ => { }); 1957app.UseEndpoints(routes => 1971newBuilder.UseEndpoints(endpoints => 2824app.UseEndpoints(endpoints => 3164app.UseEndpoints(endpoints =>
Microsoft.Extensions.Http.Resilience.Tests (1)
Resilience\GrpcResilienceTests.cs (1)
35builder.UseEndpoints(endpoints => endpoints.MapGrpcService<GreeterService>());
Mvc.RoutingWebSite (12)
Startup.cs (1)
38app.UseEndpoints(endpoints =>
StartupForDynamic.cs (1)
30app.UseEndpoints(endpoints =>
StartupForDynamicAndRazorPages.cs (1)
25app.UseEndpoints(endpoints =>
StartupForDynamicOrder.cs (1)
46app.UseEndpoints(endpoints =>
StartupForEndpointFilters.cs (1)
26app.UseEndpoints(builder =>
StartupForFallback.cs (1)
28app.UseEndpoints(endpoints =>
StartupForGroups.cs (1)
26app.UseEndpoints(endpoints =>
StartupForLinkGenerator.cs (1)
40app.UseEndpoints(endpoints =>
StartupForRouteGroupsWithMetadata.cs (1)
35app.UseEndpoints(builder =>
StartupRoutingDifferentBranches.cs (3)
44branch.UseEndpoints(endpoints => 56branch.UseEndpoints(endpoints => 64app.UseEndpoints(endpoints =>
MvcSandbox (1)
Startup.cs (1)
35app.UseEndpoints(builder =>
Negotiate.Client (1)
Startup.cs (1)
33app.UseEndpoints(endpoints =>
Negotiate.Server (1)
Startup.cs (1)
43app.UseEndpoints(endpoints =>
PathSchemeSelection (1)
Startup.cs (1)
74app.UseEndpoints(endpoints =>
RazorBuildWebSite (2)
Startup.cs (1)
20app.UseEndpoints(endpoints =>
StartupWithHostingStartup.cs (1)
27app.UseEndpoints(endpoints =>
RazorPagesWebSite (3)
Startup.cs (1)
28app.UseEndpoints(endpoints =>
StartupWithBasePath.cs (1)
43app.UseEndpoints(endpoints =>
StartupWithClientValidationDisabled.cs (1)
31app.UseEndpoints(endpoints =>
RazorWebSite (2)
Startup.cs (1)
63app.UseEndpoints(endpoints =>
StartupDataAnnotations.cs (1)
47app.UseEndpoints(endpoints =>
RoutingSandbox (1)
UseEndpointRoutingStartup.cs (1)
27app.UseEndpoints(endpoints =>
RoutingWebSite (3)
MapFallbackStartup.cs (1)
16app.UseEndpoints(endpoints =>
UseEndpointRoutingStartup.cs (2)
33app.UseEndpoints(endpoints => 159app.UseEndpoints(endpoints =>
Sandbox (1)
Startup.cs (1)
44app.UseEndpoints(endpoints =>
SecurityWebSite (4)
Startup.cs (1)
35app.UseEndpoints(endpoints =>
StartupWithGlobalAuthFilter.cs (1)
45app.UseEndpoints(endpoints =>
StartupWithGlobalDenyAnonymousFilter.cs (1)
37app.UseEndpoints(endpoints =>
StartupWithRequireAuth.cs (1)
33app.UseEndpoints(endpoints =>
SignalR.Client.FunctionalTestApp (1)
Startup.cs (1)
232app.UseEndpoints(endpoints =>
SignalRSamples (1)
Startup.cs (1)
40app.UseEndpoints(endpoints =>
SimpleWebSite (1)
Startup.cs (1)
24app.UseEndpoints(endpoints =>
SocialWeather (1)
Startup.cs (1)
33app.UseEndpoints(endpoints =>
StaticFilesAuth (1)
Startup.cs (1)
106app.UseEndpoints(endpoints =>
TagHelpersWebSite (1)
Startup.cs (1)
18app.UseEndpoints(endpoints =>
VersioningWebSite (1)
Startup.cs (1)
23app.UseEndpoints(endpoints =>
XmlFormattersWebSite (1)
Startup.cs (1)
104app.UseEndpoints(endpoints =>