4 implementations of IEndpointRouteBuilder
Microsoft.AspNetCore (1)
WebApplication.cs (1)
25
public sealed class WebApplication : IHost, IApplicationBuilder,
IEndpointRouteBuilder
, IAsyncDisposable
Microsoft.AspNetCore.Components.Server (1)
DependencyInjection\ServerRazorComponentsBuilderExtensions.cs (1)
125
private class EndpointRouteBuilder :
IEndpointRouteBuilder
Microsoft.AspNetCore.Routing (2)
DefaultEndpointRouteBuilder.cs (1)
8
internal sealed class DefaultEndpointRouteBuilder :
IEndpointRouteBuilder
RouteGroupBuilder.cs (1)
18
public sealed class RouteGroupBuilder :
IEndpointRouteBuilder
, IEndpointConventionBuilder
312 references to IEndpointRouteBuilder
Aspire.Dashboard (6)
DashboardEndpointsBuilder.cs (4)
20
public static void MapDashboardHealthChecks(this
IEndpointRouteBuilder
endpoints)
25
public static void MapDashboardApi(this
IEndpointRouteBuilder
endpoints, DashboardOptions dashboardOptions)
95
public static void MapDashboardMcp(this
IEndpointRouteBuilder
endpoints, DashboardOptions dashboardOptions)
109
public static void MapTelemetryApi(this
IEndpointRouteBuilder
endpoints, DashboardOptions dashboardOptions)
Otlp\Http\OtlpHttpEndpointsBuilder.cs (1)
32
public static void MapHttpOtlpApi(this
IEndpointRouteBuilder
endpoints, OtlpOptions options)
Utils\RoutingExtensions.cs (1)
19
public static IEndpointConventionBuilder MapPostNotFound(this
IEndpointRouteBuilder
endpoints, string pattern)
CatalogService (1)
CatalogApi.cs (1)
7
public static RouteGroupBuilder MapCatalogApi(this
IEndpointRouteBuilder
routes)
Keycloak.Web (1)
LoginLogoutEndpointRouteBuilderExtensions.cs (1)
9
internal static IEndpointConventionBuilder MapLoginAndLogout(this
IEndpointRouteBuilder
endpoints)
Microsoft.AspNetCore (3)
WebApplication.cs (3)
84
ICollection<EndpointDataSource>
IEndpointRouteBuilder
.DataSources => DataSources;
88
IServiceProvider
IEndpointRouteBuilder
.ServiceProvider => Services;
230
IApplicationBuilder
IEndpointRouteBuilder
.CreateApplicationBuilder() => ((IApplicationBuilder)this).New();
Microsoft.AspNetCore.Components.Endpoints (14)
Builder\ComponentEndpointConventionBuilderHelper.cs (1)
28
public static
IEndpointRouteBuilder
GetEndpointRouteBuilder(RazorComponentsEndpointConventionBuilder builder) => builder.EndpointRouteBuilder;
Builder\RazorComponentDataSourceOptions.cs (1)
11
/// given <see cref="RazorComponentsEndpointRouteBuilderExtensions.MapRazorComponents{TRootComponent}(Microsoft.AspNetCore.Routing.
IEndpointRouteBuilder
)"/>
Builder\RazorComponentEndpointDataSource.cs (2)
25
private readonly
IEndpointRouteBuilder
_endpointRouteBuilder;
42
IEndpointRouteBuilder
endpointRouteBuilder,
Builder\RazorComponentEndpointDataSourceFactory.cs (1)
18
public RazorComponentEndpointDataSource<TRootComponent> CreateDataSource<[DynamicallyAccessedMembers(Component)] TRootComponent>(
IEndpointRouteBuilder
endpoints)
Builder\RazorComponentsEndpointConventionBuilder.cs (2)
25
IEndpointRouteBuilder
endpointRouteBuilder,
45
internal
IEndpointRouteBuilder
EndpointRouteBuilder { get; }
Builder\RazorComponentsEndpointConventionBuilderExtensions.cs (1)
47
/// the <see cref="StaticAssetsEndpointRouteBuilderExtensions.MapStaticAssets(Routing.
IEndpointRouteBuilder
, string?)"/>
Builder\RazorComponentsEndpointRouteBuilderExtensions.cs (5)
15
/// Extensions to <see cref="
IEndpointRouteBuilder
"/> for razor component applications.
23
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/>.</param>
25
public static RazorComponentsEndpointConventionBuilder MapRazorComponents<[DynamicallyAccessedMembers(Component)] TRootComponent>(this
IEndpointRouteBuilder
endpoints)
43
IEndpointRouteBuilder
endpoints)
56
private static void EnsureRazorComponentServices(
IEndpointRouteBuilder
endpoints)
src\aspnetcore\src\Shared\Components\ResourceCollectionResolver.cs (1)
10
internal class ResourceCollectionResolver(
IEndpointRouteBuilder
endpoints)
Microsoft.AspNetCore.Components.Server (9)
Builder\ComponentEndpointRouteBuilderExtensions.cs (9)
12
/// Extensions for <see cref="
IEndpointRouteBuilder
"/>.
19
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/>.</param>
21
public static ComponentEndpointConventionBuilder MapBlazorHub(this
IEndpointRouteBuilder
endpoints)
31
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/>.</param>
35
this
IEndpointRouteBuilder
endpoints,
47
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/>.</param>
51
this
IEndpointRouteBuilder
endpoints,
63
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/>.</param>
68
this
IEndpointRouteBuilder
endpoints,
Microsoft.AspNetCore.Diagnostics.HealthChecks (8)
Builder\HealthCheckEndpointRouteBuilderExtensions.cs (8)
14
/// Provides extension methods for <see cref="
IEndpointRouteBuilder
"/> to add health checks.
21
/// Adds a health checks endpoint to the <see cref="
IEndpointRouteBuilder
"/> with the specified template.
23
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the health checks endpoint to.</param>
27
this
IEndpointRouteBuilder
endpoints,
36
/// Adds a health checks endpoint to the <see cref="
IEndpointRouteBuilder
"/> with the specified template and options.
38
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the health checks endpoint to.</param>
43
this
IEndpointRouteBuilder
endpoints,
55
private static IEndpointConventionBuilder MapHealthChecksCore(
IEndpointRouteBuilder
endpoints, string pattern, HealthCheckOptions? options)
Microsoft.AspNetCore.Http.Connections (9)
ConnectionEndpointRouteBuilderExtensions.cs (9)
16
/// Extension methods on <see cref="
IEndpointRouteBuilder
"/> that add routes for <see cref="ConnectionHandler"/>s.
25
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
29
public static ConnectionEndpointRouteBuilder MapConnections(this
IEndpointRouteBuilder
endpoints, [StringSyntax("Route")] string pattern, Action<IConnectionBuilder> configure) =>
36
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
39
public static ConnectionEndpointRouteBuilder MapConnectionHandler<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TConnectionHandler>(this
IEndpointRouteBuilder
endpoints, [StringSyntax("Route")] string pattern) where TConnectionHandler : ConnectionHandler
48
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
52
public static ConnectionEndpointRouteBuilder MapConnectionHandler<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TConnectionHandler>(this
IEndpointRouteBuilder
endpoints, [StringSyntax("Route")] string pattern, Action<HttpConnectionDispatcherOptions>? configureOptions) where TConnectionHandler : ConnectionHandler
79
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
84
public static ConnectionEndpointRouteBuilder MapConnections(this
IEndpointRouteBuilder
endpoints, [StringSyntax("Route")] string pattern, HttpConnectionDispatcherOptions options, Action<IConnectionBuilder> configure)
Microsoft.AspNetCore.Identity (18)
_generated\0\GeneratedRouteBuilderExtensions.g.cs (11)
64
this
IEndpointRouteBuilder
endpoints,
183
this
IEndpointRouteBuilder
endpoints,
369
this
IEndpointRouteBuilder
endpoints,
485
this
IEndpointRouteBuilder
endpoints,
631
this
IEndpointRouteBuilder
endpoints,
750
this
IEndpointRouteBuilder
endpoints,
866
this
IEndpointRouteBuilder
endpoints,
982
this
IEndpointRouteBuilder
endpoints,
1101
this
IEndpointRouteBuilder
endpoints,
1203
this
IEndpointRouteBuilder
endpoints,
1326
this
IEndpointRouteBuilder
routes,
IdentityApiEndpointRouteBuilderExtensions.cs (4)
24
/// Provides extension methods for <see cref="
IEndpointRouteBuilder
"/> to add identity endpoints.
36
/// The <see cref="
IEndpointRouteBuilder
"/> to add the identity endpoints to.
37
/// Call <see cref="EndpointRouteBuilderExtensions.MapGroup(
IEndpointRouteBuilder
, string)"/> to add a prefix to all the endpoints.
40
public static IEndpointConventionBuilder MapIdentityApi<TUser>(this
IEndpointRouteBuilder
endpoints)
IdentityBuilderExtensions.cs (1)
89
/// Adds configuration and services needed to support <see cref="IdentityApiEndpointRouteBuilderExtensions.MapIdentityApi{TUser}(
IEndpointRouteBuilder
)"/>
IdentityServiceCollectionExtensions.cs (2)
120
/// Adds a set of common identity services to the application to support <see cref="IdentityApiEndpointRouteBuilderExtensions.MapIdentityApi{TUser}(
IEndpointRouteBuilder
)"/>
130
/// Adds a set of common identity services to the application to support <see cref="IdentityApiEndpointRouteBuilderExtensions.MapIdentityApi{TUser}(
IEndpointRouteBuilder
)"/>
Microsoft.AspNetCore.Mvc.ApiExplorer (2)
ApiDescriptionGroup.cs (2)
16
/// Note that <see cref="Microsoft.AspNetCore.Builder.EndpointRouteBuilderExtensions.MapGroup(Microsoft.AspNetCore.Routing.
IEndpointRouteBuilder
, string)">MapGroup</see> does not set the group name for its endpoints. It only applies
18
/// <see cref="Microsoft.AspNetCore.Builder.RoutingEndpointConventionBuilderExtensions.WithGroupName{TBuilder}(TBuilder, string)">WithGroupName</see> on the <see cref="Microsoft.AspNetCore.Builder.EndpointRouteBuilderExtensions.MapGroup(Microsoft.AspNetCore.Routing.
IEndpointRouteBuilder
, string)">MapGroup</see> call.
Microsoft.AspNetCore.Mvc.Core (54)
Builder\ControllerEndpointRouteBuilderExtensions.cs (50)
16
/// Contains extension methods for using Controllers with <see cref="
IEndpointRouteBuilder
"/>.
23
/// Adds endpoints for controller actions to the <see cref="
IEndpointRouteBuilder
"/> without specifying any routes.
25
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/>.</param>
27
public static ControllerActionEndpointConventionBuilder MapControllers(this
IEndpointRouteBuilder
endpoints)
43
/// Adds endpoints for controller actions to the <see cref="
IEndpointRouteBuilder
"/> and adds the default route
46
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/>.</param>
50
public static ControllerActionEndpointConventionBuilder MapDefaultControllerRoute(this
IEndpointRouteBuilder
endpoints)
71
/// Adds endpoints for controller actions to the <see cref="
IEndpointRouteBuilder
"/> and specifies a route
75
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
94
this
IEndpointRouteBuilder
endpoints,
120
/// Adds endpoints for controller actions to the <see cref="
IEndpointRouteBuilder
"/> and specifies a route
124
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
144
this
IEndpointRouteBuilder
endpoints,
165
/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that will match
169
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
174
/// <see cref="MapFallbackToController(
IEndpointRouteBuilder
, string, string)"/> is intended to handle cases where URL path of
180
/// <see cref="MapFallbackToController(
IEndpointRouteBuilder
, string, string)"/> registers an endpoint using the pattern
184
/// <see cref="MapFallbackToController(
IEndpointRouteBuilder
, string, string)"/> does not re-execute routing, and will
189
/// <see cref="MapFallbackToController(
IEndpointRouteBuilder
, string, string)"/> does not attempt to disambiguate between
195
this
IEndpointRouteBuilder
endpoints,
223
/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that will match
227
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
233
/// <see cref="MapFallbackToController(
IEndpointRouteBuilder
, string, string, string)"/> is intended to handle cases
246
/// <see cref="MapFallbackToController(
IEndpointRouteBuilder
, string, string, string)"/> does not re-execute routing, and will
251
/// <see cref="MapFallbackToController(
IEndpointRouteBuilder
, string, string, string)"/> does not attempt to disambiguate between
257
this
IEndpointRouteBuilder
endpoints,
287
/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that will match
291
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
297
/// <see cref="MapFallbackToAreaController(
IEndpointRouteBuilder
, string, string, string)"/> is intended to handle cases where URL path of
303
/// <see cref="MapFallbackToAreaController(
IEndpointRouteBuilder
, string, string, string)"/> registers an endpoint using the pattern
307
/// <see cref="MapFallbackToAreaController(
IEndpointRouteBuilder
, string, string, string)"/> does not re-execute routing, and will
312
/// <see cref="MapFallbackToAreaController(
IEndpointRouteBuilder
, string, string, string)"/> does not attempt to disambiguate between
318
this
IEndpointRouteBuilder
endpoints,
347
/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that will match
351
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
358
/// <see cref="MapFallbackToAreaController(
IEndpointRouteBuilder
, string, string, string, string)"/> is intended to handle
371
/// <see cref="MapFallbackToAreaController(
IEndpointRouteBuilder
, string, string, string, string)"/> does not re-execute routing, and will
376
/// <see cref="MapFallbackToAreaController(
IEndpointRouteBuilder
, string, string, string, string)"/> does not attempt to disambiguate between
382
this
IEndpointRouteBuilder
endpoints,
413
/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that will
416
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
429
public static void MapDynamicControllerRoute<TTransformer>(this
IEndpointRouteBuilder
endpoints, [StringSyntax("Route")] string pattern)
438
/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that will
441
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
456
public static void MapDynamicControllerRoute<TTransformer>(this
IEndpointRouteBuilder
endpoints, [StringSyntax("Route")] string pattern, object? state)
472
/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that will
475
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
491
public static void MapDynamicControllerRoute<TTransformer>(this
IEndpointRouteBuilder
endpoints, [StringSyntax("Route")] string pattern, object state, int order)
516
private static void EnsureControllerServices(
IEndpointRouteBuilder
endpoints)
528
private static ControllerActionEndpointDataSource GetOrCreateDataSource(
IEndpointRouteBuilder
endpoints)
Infrastructure\OrderedEndpointsSequenceProviderCache.cs (2)
11
private readonly ConcurrentDictionary<
IEndpointRouteBuilder
, OrderedEndpointsSequenceProvider> _sequenceProviderCache = new();
13
public OrderedEndpointsSequenceProvider GetOrCreateOrderedEndpointsSequenceProvider(
IEndpointRouteBuilder
endpoints)
Routing\ControllerActionEndpointDataSource.cs (1)
134
internal void AddDynamicControllerEndpoint(
IEndpointRouteBuilder
endpoints, string pattern, Type transformerType, object? state, int? order = null)
Routing\DynamicRouteValueTransformer.cs (1)
16
/// <see cref="Microsoft.AspNetCore.Builder.ControllerEndpointRouteBuilderExtensions.MapDynamicControllerRoute{TTransformer}(
IEndpointRouteBuilder
, string)" />
Microsoft.AspNetCore.Mvc.RazorPages (39)
Builder\PageActionEndpointConventionBuilderResourceCollectionExtensions.cs (1)
34
: (new ResourceCollectionResolver((
IEndpointRouteBuilder
)endpointBuilder), false);
Builder\RazorPagesEndpointRouteBuilderExtensions.cs (37)
16
/// Contains extension methods for using Razor Pages with <see cref="
IEndpointRouteBuilder
"/>.
23
/// Adds endpoints for Razor Pages to the <see cref="
IEndpointRouteBuilder
"/>.
25
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/>.</param>
27
public static PageActionEndpointConventionBuilder MapRazorPages(this
IEndpointRouteBuilder
endpoints)
42
/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that will match
46
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
50
/// <see cref="MapFallbackToPage(
IEndpointRouteBuilder
, string)"/> is intended to handle cases where URL path of
56
/// <see cref="MapFallbackToPage(
IEndpointRouteBuilder
, string)"/> registers an endpoint using the pattern
60
/// <see cref="MapFallbackToPage(
IEndpointRouteBuilder
, string)"/> does not re-execute routing, and will
65
public static IEndpointConventionBuilder MapFallbackToPage(this
IEndpointRouteBuilder
endpoints, string page)
92
/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that will match
96
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
101
/// <see cref="MapFallbackToPage(
IEndpointRouteBuilder
, string, string)"/> is intended to handle cases where URL path of
114
/// <see cref="MapFallbackToPage(
IEndpointRouteBuilder
, string, string)"/> does not re-execute routing, and will
120
this
IEndpointRouteBuilder
endpoints,
150
/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that will match
154
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
159
/// <see cref="MapFallbackToAreaPage(
IEndpointRouteBuilder
, string, string)"/> is intended to handle cases where URL path of
165
/// <see cref="MapFallbackToAreaPage(
IEndpointRouteBuilder
, string, string)"/> registers an endpoint using the pattern
169
/// <see cref="MapFallbackToAreaPage(
IEndpointRouteBuilder
, string, string)"/> does not re-execute routing, and will
175
this
IEndpointRouteBuilder
endpoints,
204
/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that will match
208
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
214
/// <see cref="MapFallbackToAreaPage(
IEndpointRouteBuilder
, string, string, string)"/> is intended to handle cases where URL path of
227
/// <see cref="MapFallbackToAreaPage(
IEndpointRouteBuilder
, string, string, string)"/> does not re-execute routing, and will
233
this
IEndpointRouteBuilder
endpoints,
264
/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that will
267
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
280
public static void MapDynamicPageRoute<TTransformer>(this
IEndpointRouteBuilder
endpoints, [StringSyntax("Route")] string pattern)
287
/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that will
290
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
304
public static void MapDynamicPageRoute<TTransformer>(this
IEndpointRouteBuilder
endpoints, [StringSyntax("Route")] string pattern, object? state)
320
/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that will
323
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
338
public static void MapDynamicPageRoute<TTransformer>(this
IEndpointRouteBuilder
endpoints, [StringSyntax("Route")] string pattern, object state, int order)
362
private static void EnsureRazorPagesServices(
IEndpointRouteBuilder
endpoints)
374
private static PageActionEndpointDataSource GetOrCreateDataSource(
IEndpointRouteBuilder
endpoints)
Infrastructure\PageActionEndpointDataSource.cs (1)
74
internal void AddDynamicPageEndpoint(
IEndpointRouteBuilder
endpoints, string pattern, Type transformerType, object? state, int? order = null)
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensions.cs (1)
36
: (new ResourceCollectionResolver((
IEndpointRouteBuilder
)endpointBuilder), false);
src\aspnetcore\src\Shared\Components\ResourceCollectionResolver.cs (1)
10
internal class ResourceCollectionResolver(
IEndpointRouteBuilder
endpoints)
Microsoft.AspNetCore.Routing (109)
Builder\EndpointRouteBuilderExtensions.cs (67)
14
/// Provides extension methods for <see cref="
IEndpointRouteBuilder
"/> to add endpoints.
31
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the group to.</param>
34
/// A <see cref="RouteGroupBuilder"/> that is both an <see cref="
IEndpointRouteBuilder
"/> and an <see cref="IEndpointConventionBuilder"/>.
37
public static RouteGroupBuilder MapGroup(this
IEndpointRouteBuilder
endpoints, [StringSyntax("Route")] string prefix) =>
43
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the group to.</param>
46
/// A <see cref="RouteGroupBuilder"/> that is both an <see cref="
IEndpointRouteBuilder
"/> and an <see cref="IEndpointConventionBuilder"/>.
49
public static RouteGroupBuilder MapGroup(this
IEndpointRouteBuilder
endpoints, RoutePattern prefix)
58
/// Adds a <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that matches HTTP GET requests
61
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
66
this
IEndpointRouteBuilder
endpoints,
74
/// Adds a <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that matches HTTP POST requests
77
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
82
this
IEndpointRouteBuilder
endpoints,
90
/// Adds a <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that matches HTTP PUT requests
93
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
98
this
IEndpointRouteBuilder
endpoints,
106
/// Adds a <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that matches HTTP DELETE requests
109
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
114
this
IEndpointRouteBuilder
endpoints,
122
/// Adds a <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that matches HTTP PATCH requests
125
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
130
this
IEndpointRouteBuilder
endpoints,
138
/// Adds a <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that matches HTTP requests
141
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
147
this
IEndpointRouteBuilder
endpoints,
158
/// Adds a <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that matches HTTP requests
161
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
166
this
IEndpointRouteBuilder
endpoints,
174
/// Adds a <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that matches HTTP requests
177
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
182
this
IEndpointRouteBuilder
endpoints,
190
this
IEndpointRouteBuilder
endpoints,
221
/// Adds a <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that matches HTTP GET requests
224
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
231
this
IEndpointRouteBuilder
endpoints,
239
/// Adds a <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that matches HTTP POST requests
242
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
249
this
IEndpointRouteBuilder
endpoints,
257
/// Adds a <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that matches HTTP PUT requests
260
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
267
this
IEndpointRouteBuilder
endpoints,
275
/// Adds a <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that matches HTTP DELETE requests
278
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
285
this
IEndpointRouteBuilder
endpoints,
293
/// Adds a <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that matches HTTP PATCH requests
296
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
303
this
IEndpointRouteBuilder
endpoints,
311
/// Adds a <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that matches HTTP requests
314
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
322
this
IEndpointRouteBuilder
endpoints,
332
/// Adds a <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that matches HTTP requests
335
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
342
this
IEndpointRouteBuilder
endpoints,
350
/// Adds a <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that matches HTTP requests
353
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
360
this
IEndpointRouteBuilder
endpoints,
368
/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that will match
371
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
376
/// <see cref="MapFallback(
IEndpointRouteBuilder
, Delegate)"/> is intended to handle cases where URL path of
382
/// <see cref="MapFallback(
IEndpointRouteBuilder
, Delegate)"/> registers an endpoint using the pattern
388
public static RouteHandlerBuilder MapFallback(this
IEndpointRouteBuilder
endpoints, Delegate handler)
394
/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that will match
397
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
403
/// <see cref="MapFallback(
IEndpointRouteBuilder
, string, Delegate)"/> is intended to handle cases where no
417
this
IEndpointRouteBuilder
endpoints,
427
this
IEndpointRouteBuilder
endpoints,
442
internal static RouteEndpointDataSource GetOrAddRouteEndpointDataSource(this
IEndpointRouteBuilder
endpoints)
Builder\EndpointRoutingApplicationBuilderExtensions.cs (12)
28
/// <see cref="UseEndpoints(IApplicationBuilder, Action{
IEndpointRouteBuilder
})"/> for the same <see cref="IApplicationBuilder"/>
34
/// and <see cref="UseEndpoints(IApplicationBuilder, Action{
IEndpointRouteBuilder
})"/> may observe or change the
44
IEndpointRouteBuilder
endpointRouteBuilder;
47
endpointRouteBuilder = (
IEndpointRouteBuilder
)obj!;
66
/// <see cref="EndpointDataSource"/> instances built from the configured <see cref="
IEndpointRouteBuilder
"/>.
70
/// <param name="configure">An <see cref="Action{IEndpointRouteBuilder}"/> to configure the provided <see cref="
IEndpointRouteBuilder
"/>.</param>
74
/// A call to <see cref="UseEndpoints(IApplicationBuilder, Action{
IEndpointRouteBuilder
})"/> must be preceded by a call to
81
/// and <see cref="UseEndpoints(IApplicationBuilder, Action{
IEndpointRouteBuilder
})"/> may observe or change the
85
public static IApplicationBuilder UseEndpoints(this IApplicationBuilder builder, Action<
IEndpointRouteBuilder
> configure)
92
VerifyEndpointRoutingMiddlewareIsRegistered(builder, out
var
endpointRouteBuilder);
126
private static void VerifyEndpointRoutingMiddlewareIsRegistered(IApplicationBuilder app, out
IEndpointRouteBuilder
endpointRouteBuilder)
138
endpointRouteBuilder = (
IEndpointRouteBuilder
)obj!;
Builder\FallbackEndpointRouteBuilderExtensions.cs (10)
11
/// Contains extension methods for <see cref="
IEndpointRouteBuilder
"/>.
21
/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that will match
24
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
29
/// <see cref="MapFallback(
IEndpointRouteBuilder
, RequestDelegate)"/> is intended to handle cases where URL path of
35
/// <see cref="MapFallback(
IEndpointRouteBuilder
, RequestDelegate)"/> registers an endpoint using the pattern
39
public static IEndpointConventionBuilder MapFallback(this
IEndpointRouteBuilder
endpoints, RequestDelegate requestDelegate)
48
/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that will match
51
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
57
/// <see cref="MapFallback(
IEndpointRouteBuilder
, string, RequestDelegate)"/> is intended to handle cases where no
69
this
IEndpointRouteBuilder
endpoints,
Builder\RouteHandlerServices.cs (4)
27
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
35
IEndpointRouteBuilder
endpoints,
56
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
65
IEndpointRouteBuilder
endpoints,
EndpointRoutingMiddleware.cs (1)
37
IEndpointRouteBuilder
endpointRouteBuilder,
RouteGroupBuilder.cs (7)
13
/// A builder for defining groups of endpoints with a common prefix that implements both the <see cref="
IEndpointRouteBuilder
"/>
15
/// <see cref="EndpointRouteBuilderExtensions.MapGroup(Microsoft.AspNetCore.Routing.
IEndpointRouteBuilder
, RoutePattern)"/>
20
private readonly
IEndpointRouteBuilder
_outerEndpointRouteBuilder;
27
internal RouteGroupBuilder(
IEndpointRouteBuilder
outerEndpointRouteBuilder, RoutePattern partialPrefix)
34
IServiceProvider
IEndpointRouteBuilder
.ServiceProvider => _outerEndpointRouteBuilder.ServiceProvider;
35
IApplicationBuilder
IEndpointRouteBuilder
.CreateApplicationBuilder() => _outerEndpointRouteBuilder.CreateApplicationBuilder();
36
ICollection<EndpointDataSource>
IEndpointRouteBuilder
.DataSources => _dataSources;
RouteGroupContext.cs (3)
17
/// not just the prefix supplied to the innermost call to <see cref="EndpointRouteBuilderExtensions.MapGroup(
IEndpointRouteBuilder
, RoutePattern)"/>.
22
/// Gets all conventions added to ancestor <see cref="RouteGroupBuilder"/> instances returned from <see cref="EndpointRouteBuilderExtensions.MapGroup(
IEndpointRouteBuilder
, RoutePattern)"/>
29
/// Gets all conventions added to ancestor <see cref="RouteGroupBuilder"/> instances returned from <see cref="EndpointRouteBuilderExtensions.MapGroup(
IEndpointRouteBuilder
, RoutePattern)"/>
RouteHandlerOptions.cs (1)
12
/// Options for controlling the behavior of <see cref="EndpointRouteBuilderExtensions.MapGet(
IEndpointRouteBuilder
, string, Delegate)"/>
ShortCircuit\RouteShortCircuitEndpointRouteBuilderExtensions.cs (4)
10
/// Provides extension methods for <see cref="
IEndpointRouteBuilder
"/> to add short circuited endpoints.
16
/// Adds a <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that matches HTTP requests (all verbs)
19
///<param name="builder">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
23
public static IEndpointConventionBuilder MapShortCircuit(this
IEndpointRouteBuilder
builder, int statusCode, params string[] routePrefixes)
Microsoft.AspNetCore.SignalR (5)
HubEndpointRouteBuilderExtensions.cs (5)
13
/// Extension methods on <see cref="
IEndpointRouteBuilder
"/> to add routes to <see cref="Hub"/>s.
23
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
26
public static HubEndpointConventionBuilder MapHub<[DynamicallyAccessedMembers(HubAccessibility)] THub>(this
IEndpointRouteBuilder
endpoints, [StringSyntax("Route")] string pattern) where THub : Hub
35
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
39
public static HubEndpointConventionBuilder MapHub<[DynamicallyAccessedMembers(HubAccessibility)] THub>(this
IEndpointRouteBuilder
endpoints, [StringSyntax("Route")] string pattern, Action<HttpConnectionDispatcherOptions>? configureOptions) where THub : Hub
Microsoft.AspNetCore.StaticAssets (9)
Development\StaticAssetDevelopmentRuntimeHandler.cs (1)
256
IEndpointRouteBuilder
endpoints,
Infrastructure\StaticAssetsEndpointDataSourceHelper.cs (2)
18
public static bool HasStaticAssetsDataSource(
IEndpointRouteBuilder
builder, string? staticAssetsManifestPath = null)
39
IEndpointRouteBuilder
endpointRouteBuilder,
StaticAssetsEndpointRouteBuilderExtensions.cs (5)
20
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/>.</param>
26
public static StaticAssetsEndpointConventionBuilder MapStaticAssets(this
IEndpointRouteBuilder
endpoints, string? staticAssetsManifestPath = null)
48
IEndpointRouteBuilder
endpoints,
73
private static StaticAssetsEndpointConventionBuilder? GetExistingBuilder(
IEndpointRouteBuilder
endpoints, string manifestPath)
87
internal static StaticAssetsEndpointConventionBuilder MapStaticAssets(this
IEndpointRouteBuilder
endpoints, StaticAssetsManifest manifest)
StaticAssetsManifest.cs (1)
38
internal static StaticAssetsEndpointDataSource CreateDataSource(
IEndpointRouteBuilder
endpoints, string manifestName, List<StaticAssetDescriptor> descriptors, bool isBuildManifest)
Microsoft.AspNetCore.StaticFiles (23)
StaticFilesEndpointRouteBuilderExtensions.cs (23)
23
/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that will match
27
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/>.</param>
29
/// <returns>The <see cref="
IEndpointRouteBuilder
"/></returns>
32
/// <see cref="MapFallbackToFile(
IEndpointRouteBuilder
, string)"/> is intended to handle cases where URL path of
41
/// <see cref="MapFallbackToFile(
IEndpointRouteBuilder
, string)"/> registers an endpoint using the pattern
48
this
IEndpointRouteBuilder
endpoints,
60
/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that will match
64
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/>.</param>
67
/// <returns>The <see cref="
IEndpointRouteBuilder
"/></returns>
70
/// <see cref="MapFallbackToFile(
IEndpointRouteBuilder
, string, StaticFileOptions)"/> is intended to handle cases
76
/// <see cref="MapFallbackToFile(
IEndpointRouteBuilder
, string, StaticFileOptions)"/> registers an endpoint using the pattern
83
this
IEndpointRouteBuilder
endpoints,
96
/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that will match
100
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/>.</param>
103
/// <returns>The <see cref="
IEndpointRouteBuilder
"/></returns>
106
/// <see cref="MapFallbackToFile(
IEndpointRouteBuilder
, string, string)"/> is intended to handle
125
this
IEndpointRouteBuilder
endpoints,
139
/// Adds a specialized <see cref="RouteEndpoint"/> to the <see cref="
IEndpointRouteBuilder
"/> that will match
143
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/>.</param>\
147
/// <returns>The <see cref="
IEndpointRouteBuilder
"/></returns>
150
/// <see cref="MapFallbackToFile(
IEndpointRouteBuilder
, string, string, StaticFileOptions)"/> is intended to handle
166
this
IEndpointRouteBuilder
endpoints,
181
IEndpointRouteBuilder
endpoints,