16 implementations of IEndpointRouteBuilder
Microsoft.AspNetCore (1)
WebApplication.cs (1)
25
public sealed class WebApplication : IHost, IApplicationBuilder,
IEndpointRouteBuilder
, IAsyncDisposable
Microsoft.AspNetCore.Components.Endpoints.Tests (3)
Builder\RazorComponentsEndpointConventionBuilderExtensionsTest.cs (1)
260
private class TestEndpointRouteBuilder :
IEndpointRouteBuilder
HotReloadServiceTests.cs (1)
291
private class TestEndpointRouteBuilder :
IEndpointRouteBuilder
RazorComponentEndpointDataSourceTest.cs (1)
307
private class TestEndpointRouteBuilder :
IEndpointRouteBuilder
Microsoft.AspNetCore.Components.Server (1)
DependencyInjection\ServerRazorComponentsBuilderExtensions.cs (1)
122
private class EndpointRouteBuilder :
IEndpointRouteBuilder
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (1)
JsonTranscodingServiceMethodProviderTests.cs (1)
244
private class TestEndpointRouteBuilder :
IEndpointRouteBuilder
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
MapPathMiddlewareTests.cs (1)
246
private class MockWebApplication : IApplicationBuilder,
IEndpointRouteBuilder
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
470
private class DefaultEndpointRouteBuilder :
IEndpointRouteBuilder
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
470
private class DefaultEndpointRouteBuilder :
IEndpointRouteBuilder
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
EndpointMetadataApiDescriptionProviderTest.cs (1)
1615
private class TestEndpointRouteBuilder :
IEndpointRouteBuilder
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Builder\PageActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (1)
202
private class TestEndpointRouteBuilder :
IEndpointRouteBuilder
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (1)
275
private class TestEndpointRouteBuilder :
IEndpointRouteBuilder
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiDocumentServiceTestsBase.cs (1)
167
internal class TestEndpointRouteBuilder :
IEndpointRouteBuilder
Microsoft.AspNetCore.Routing (2)
DefaultEndpointRouteBuilder.cs (1)
8
internal sealed class DefaultEndpointRouteBuilder :
IEndpointRouteBuilder
RouteGroupBuilder.cs (1)
18
public sealed class RouteGroupBuilder :
IEndpointRouteBuilder
, IEndpointConventionBuilder
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
EndpointRoutingShortCircuitBenchmark.cs (1)
98
internal class BenchmarkEndpointRouteBuilder :
IEndpointRouteBuilder
384 references to IEndpointRouteBuilder
Aspire.Dashboard (2)
DashboardEndpointsBuilder.cs (1)
17
public static void MapDashboardApi(this
IEndpointRouteBuilder
endpoints, DashboardOptions dashboardOptions)
Otlp\Http\OtlpHttpEndpointsBuilder.cs (1)
25
public static void MapHttpOtlpApi(this
IEndpointRouteBuilder
endpoints, OtlpOptions options)
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.Authentication.Negotiate.Test (2)
EventTests.cs (1)
434
private static void ConfigureEndpoints(
IEndpointRouteBuilder
builder)
NegotiateHandlerTests.cs (1)
405
private static void ConfigureEndpoints(
IEndpointRouteBuilder
builder)
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;
44
IEndpointRouteBuilder
endpointRouteBuilder,
Builder\RazorComponentEndpointDataSourceFactory.cs (1)
18
public RazorComponentEndpointDataSource<TRootComponent> CreateDataSource<[DynamicallyAccessedMembers(Component)] TRootComponent>(
IEndpointRouteBuilder
endpoints)
Builder\RazorComponentsEndpointConventionBuilder.cs (2)
25
IEndpointRouteBuilder
endpointRouteBuilder,
47
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\Shared\Components\ResourceCollectionResolver.cs (1)
10
internal class ResourceCollectionResolver(
IEndpointRouteBuilder
endpoints)
Microsoft.AspNetCore.Components.Endpoints.Tests (3)
Builder\RazorComponentsEndpointConventionBuilderExtensionsTest.cs (3)
185
var groupEndpoints = Assert.IsAssignableFrom<
IEndpointRouteBuilder
>(group).DataSources;
211
var groupEndpoints = Assert.IsAssignableFrom<
IEndpointRouteBuilder
>(group).DataSources;
245
private RazorComponentsEndpointConventionBuilder CreateRazorComponentsAppBuilder(
IEndpointRouteBuilder
endpointBuilder)
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.Components.WebAssembly.Server (2)
Builder\WebAssemblyRazorComponentsEndpointConventionBuilderExtensions.cs (1)
54
var
endpointBuilder = ComponentEndpointConventionBuilderHelper.GetEndpointRouteBuilder(builder);
WebAssemblyEndpointProvider.cs (1)
53
private class WebAssemblyEndpointRouteBuilder(IServiceProvider serviceProvider, IApplicationBuilder applicationBuilder) :
IEndpointRouteBuilder
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.Grpc.JsonTranscoding.Tests (1)
JsonTranscodingServiceMethodProviderTests.cs (1)
273
IEndpointRouteBuilder
endpointRouteBuilder = new TestEndpointRouteBuilder(serviceCollection.BuildServiceProvider());
Microsoft.AspNetCore.Http.Connections (9)
ConnectionEndpointRouteBuilderExtensions.cs (9)
15
/// Extension methods on <see cref="
IEndpointRouteBuilder
"/> that add routes for <see cref="ConnectionHandler"/>s.
24
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
28
public static ConnectionEndpointRouteBuilder MapConnections(this
IEndpointRouteBuilder
endpoints, [StringSyntax("Route")] string pattern, Action<IConnectionBuilder> configure) =>
35
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
38
public static ConnectionEndpointRouteBuilder MapConnectionHandler<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TConnectionHandler>(this
IEndpointRouteBuilder
endpoints, [StringSyntax("Route")] string pattern) where TConnectionHandler : ConnectionHandler
47
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
51
public static ConnectionEndpointRouteBuilder MapConnectionHandler<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TConnectionHandler>(this
IEndpointRouteBuilder
endpoints, [StringSyntax("Route")] string pattern, Action<HttpConnectionDispatcherOptions>? configureOptions) where TConnectionHandler : ConnectionHandler
78
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
83
public static ConnectionEndpointRouteBuilder MapConnections(this
IEndpointRouteBuilder
endpoints, [StringSyntax("Route")] string pattern, HttpConnectionDispatcherOptions options, Action<IConnectionBuilder> configure)
Microsoft.AspNetCore.Http.Connections.Tests (6)
HttpConnectionDispatcherTests.cs (1)
3640
private static IHost CreateHost(Action<IServiceCollection> configureServices, Action<
IEndpointRouteBuilder
> configureEndpoints,
MapConnectionHandlerTests.cs (5)
248
void ConfigureRoutes(
IEndpointRouteBuilder
endpoints)
288
void ConfigureRoutes(
IEndpointRouteBuilder
endpoints)
319
void ConfigureRoutes(
IEndpointRouteBuilder
endpoints)
358
void ConfigureRoutes(
IEndpointRouteBuilder
endpoints)
484
private IHost BuildWebHost(Action<
IEndpointRouteBuilder
> configure)
Microsoft.AspNetCore.Http.Extensions.Tests (2)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (2)
160
?.CreateDelegate<Func<
IEndpointRouteBuilder
,
IEndpointRouteBuilder
>>();
Microsoft.AspNetCore.Http.Microbenchmarks (2)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (2)
160
?.CreateDelegate<Func<
IEndpointRouteBuilder
,
IEndpointRouteBuilder
>>();
Microsoft.AspNetCore.Identity (7)
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)
88
/// Adds configuration and services needed to support <see cref="IdentityApiEndpointRouteBuilderExtensions.MapIdentityApi{TUser}(
IEndpointRouteBuilder
)"/>
IdentityServiceCollectionExtensions.cs (2)
118
/// Adds a set of common identity services to the application to support <see cref="IdentityApiEndpointRouteBuilderExtensions.MapIdentityApi{TUser}(
IEndpointRouteBuilder
)"/>
128
/// Adds a set of common identity services to the application to support <see cref="IdentityApiEndpointRouteBuilderExtensions.MapIdentityApi{TUser}(
IEndpointRouteBuilder
)"/>
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.RazorPages.Test (2)
Builder\PageActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (2)
166
var groupEndpoints = Assert.IsAssignableFrom<
IEndpointRouteBuilder
>(group).DataSources;
192
var groupEndpoints = Assert.IsAssignableFrom<
IEndpointRouteBuilder
>(group).DataSources;
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensions.cs (1)
36
: (new ResourceCollectionResolver((
IEndpointRouteBuilder
)endpointBuilder), false);
src\Shared\Components\ResourceCollectionResolver.cs (1)
10
internal class ResourceCollectionResolver(
IEndpointRouteBuilder
endpoints)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (2)
221
var groupEndpoints = Assert.IsAssignableFrom<
IEndpointRouteBuilder
>(group).DataSources;
256
var groupEndpoints = Assert.IsAssignableFrom<
IEndpointRouteBuilder
>(group).DataSources;
Microsoft.AspNetCore.OpenApi (4)
Extensions\OpenApiEndpointRouteBuilderExtensions.cs (4)
17
/// OpenAPI-related methods for <see cref="
IEndpointRouteBuilder
"/>.
25
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/>.</param>
27
/// <returns>An <see cref="
IEndpointRouteBuilder
"/> that can be used to further customize the endpoint.</returns>
28
public static IEndpointConventionBuilder MapOpenApi(this
IEndpointRouteBuilder
endpoints, [StringSyntax("Route")] string pattern = OpenApiConstants.DefaultOpenApiRoute)
Microsoft.AspNetCore.OpenApi.Microbenchmarks (2)
GenerationBenchmarks.cs (1)
23
private readonly
IEndpointRouteBuilder
_builder = CreateBuilder();
TransformersBenchmark.cs (1)
24
private readonly
IEndpointRouteBuilder
_builder = CreateBuilder();
Microsoft.AspNetCore.OpenApi.Tests (5)
Extensions\OpenApiRouteHandlerBuilderExtensionTests.cs (1)
247
private RouteEndpointDataSource GetBuilderEndpointDataSource(
IEndpointRouteBuilder
endpointRouteBuilder)
Services\OpenApiDocumentServiceTestsBase.cs (4)
31
public static async Task VerifyOpenApiDocument(
IEndpointRouteBuilder
builder, Action<OpenApiDocument> verifyOpenApiDocument, CancellationToken cancellationToken = default)
34
public static async Task VerifyOpenApiDocument(
IEndpointRouteBuilder
builder, OpenApiOptions openApiOptions, Action<OpenApiDocument> verifyOpenApiDocument, CancellationToken cancellationToken = default)
51
internal static OpenApiDocumentService CreateDocumentService(
IEndpointRouteBuilder
builder, ActionDescriptor actionDescriptor)
112
internal static OpenApiDocumentService CreateDocumentService(
IEndpointRouteBuilder
builder, OpenApiOptions openApiOptions)
Microsoft.AspNetCore.Routing (107)
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 (10)
28
/// <see cref="UseEndpoints(IApplicationBuilder, Action{
IEndpointRouteBuilder
})"/> for the same <see cref="IApplicationBuilder"/>
45
IEndpointRouteBuilder
endpointRouteBuilder;
48
endpointRouteBuilder = (
IEndpointRouteBuilder
)obj!;
67
/// with the <see cref="EndpointDataSource"/> instances built from configured <see cref="
IEndpointRouteBuilder
"/>.
72
/// <param name="configure">An <see cref="Action{IEndpointRouteBuilder}"/> to configure the provided <see cref="
IEndpointRouteBuilder
"/>.</param>
76
/// A call to <see cref="UseEndpoints(IApplicationBuilder, Action{
IEndpointRouteBuilder
})"/> must be preceded by a call to
88
public static IApplicationBuilder UseEndpoints(this IApplicationBuilder builder, Action<
IEndpointRouteBuilder
> configure)
95
VerifyEndpointRoutingMiddlewareIsRegistered(builder, out
var
endpointRouteBuilder);
129
private static void VerifyEndpointRoutingMiddlewareIsRegistered(IApplicationBuilder app, out
IEndpointRouteBuilder
endpointRouteBuilder)
141
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)
26
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
34
IEndpointRouteBuilder
endpoints,
55
/// <param name="endpoints">The <see cref="
IEndpointRouteBuilder
"/> to add the route to.</param>
64
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.Routing.FunctionalTests (5)
MinimalFormTests.cs (4)
347
(
IEndpointRouteBuilder
builder) => builder.MapPost("/todo", async context =>
361
(
IEndpointRouteBuilder
builder) => builder.MapPost("/todo", async context =>
375
(
IEndpointRouteBuilder
builder) => builder.MapPost("/todo", async context =>
392
public async Task MapRequestDelegate_WithForm_RequiresValidation_InvalidToken_Fails(Func<
IEndpointRouteBuilder
, IEndpointConventionBuilder> addDelegate)
RouteHandlerTest.cs (1)
80
((
IEndpointRouteBuilder
)group).DataSources.Add(testGroupDisposeDataSource);
Microsoft.AspNetCore.Routing.Tests (43)
Builder\EndpointRoutingApplicationBuilderExtensionsTest.cs (4)
305
var mockRouteBuilder = new Mock<
IEndpointRouteBuilder
>();
308
var
routeBuilder = mockRouteBuilder.Object;
335
var
routeBuilder = new Mock<
IEndpointRouteBuilder
>().Object;
Builder\FallbackEndpointRouteBuilderExtensionsTest.cs (1)
13
private EndpointDataSource GetBuilderEndpointDataSource(
IEndpointRouteBuilder
endpointRouteBuilder) =>
Builder\GroupTest.cs (3)
17
private EndpointDataSource GetEndpointDataSource(
IEndpointRouteBuilder
endpointRouteBuilder)
306
((
IEndpointRouteBuilder
)group).DataSources.Add(new TestCustomEndpintDataSource());
368
((
IEndpointRouteBuilder
)group).DataSources.Add(dynamicDataSource);
Builder\RequestDelegateEndpointRouteBuilderExtensionsTest.cs (17)
20
private EndpointDataSource GetBuilderEndpointDataSource(
IEndpointRouteBuilder
endpointRouteBuilder) =>
23
private RouteEndpointBuilder GetRouteEndpointBuilder(
IEndpointRouteBuilder
endpointRouteBuilder) =>
34
IEndpointConventionBuilder MapGet(
IEndpointRouteBuilder
routes, string template, RequestDelegate action) =>
37
IEndpointConventionBuilder MapPost(
IEndpointRouteBuilder
routes, string template, RequestDelegate action) =>
40
IEndpointConventionBuilder MapPut(
IEndpointRouteBuilder
routes, string template, RequestDelegate action) =>
43
IEndpointConventionBuilder MapDelete(
IEndpointRouteBuilder
routes, string template, RequestDelegate action) =>
46
IEndpointConventionBuilder Map(
IEndpointRouteBuilder
routes, string template, RequestDelegate action) =>
51
new object[] { (Func<
IEndpointRouteBuilder
, string, RequestDelegate, IEndpointConventionBuilder>)MapGet },
52
new object[] { (Func<
IEndpointRouteBuilder
, string, RequestDelegate, IEndpointConventionBuilder>)MapPost },
53
new object[] { (Func<
IEndpointRouteBuilder
, string, RequestDelegate, IEndpointConventionBuilder>)MapPut },
54
new object[] { (Func<
IEndpointRouteBuilder
, string, RequestDelegate, IEndpointConventionBuilder>)MapDelete },
55
new object[] { (Func<
IEndpointRouteBuilder
, string, RequestDelegate, IEndpointConventionBuilder>)Map },
80
public async Task MapEndpoint_ReturnGenericTypeTask_GeneratedDelegate(Func<
IEndpointRouteBuilder
, string, RequestDelegate, IEndpointConventionBuilder> map)
112
public async Task MapEndpoint_CanBeFiltered_EndpointFilterFactory(Func<
IEndpointRouteBuilder
, string, RequestDelegate, IEndpointConventionBuilder> map)
327
public void MapEndpoint_UsesOriginalRequestDelegateInstance_IfFilterDoesNotChangePerRequestBehavior(Func<
IEndpointRouteBuilder
, string, RequestDelegate, IEndpointConventionBuilder> map)
431
public void Map_EndpointMetadataNotDuplicated(Func<
IEndpointRouteBuilder
, string, RequestDelegate, IEndpointConventionBuilder> map)
454
public void AddingMetadataAfterBuildingEndpointThrows(Func<
IEndpointRouteBuilder
, string, RequestDelegate, IEndpointConventionBuilder> map)
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (18)
20
private RouteEndpointDataSource GetBuilderEndpointDataSource(
IEndpointRouteBuilder
endpointRouteBuilder)
25
private RouteEndpointBuilder GetRouteEndpointBuilder(
IEndpointRouteBuilder
endpointRouteBuilder)
34
IEndpointConventionBuilder MapGet(
IEndpointRouteBuilder
routes, string template, Delegate action) =>
37
IEndpointConventionBuilder MapPost(
IEndpointRouteBuilder
routes, string template, Delegate action) =>
40
IEndpointConventionBuilder MapPut(
IEndpointRouteBuilder
routes, string template, Delegate action) =>
43
IEndpointConventionBuilder MapDelete(
IEndpointRouteBuilder
routes, string template, Delegate action) =>
46
IEndpointConventionBuilder MapPatch(
IEndpointRouteBuilder
routes, string template, Delegate action) =>
49
IEndpointConventionBuilder Map(
IEndpointRouteBuilder
routes, string template, Delegate action) =>
54
new object?[] { (Func<
IEndpointRouteBuilder
, string, Delegate, IEndpointConventionBuilder>)MapGet, "GET" },
55
new object?[] { (Func<
IEndpointRouteBuilder
, string, Delegate, IEndpointConventionBuilder>)MapPost, "POST" },
56
new object?[] { (Func<
IEndpointRouteBuilder
, string, Delegate, IEndpointConventionBuilder>)MapPut, "PUT" },
57
new object?[] { (Func<
IEndpointRouteBuilder
, string, Delegate, IEndpointConventionBuilder>)MapDelete, "DELETE" },
58
new object?[] { (Func<
IEndpointRouteBuilder
, string, Delegate, IEndpointConventionBuilder>)MapPatch, "PATCH" },
59
new object?[] { (Func<
IEndpointRouteBuilder
, string, Delegate, IEndpointConventionBuilder>)Map, null },
450
public void MapVerbDoesNotDuplicateMetadata(Func<
IEndpointRouteBuilder
, string, Delegate, IEndpointConventionBuilder> map, string expectedMethod)
481
public void AddingMetadataAfterBuildingEndpointThrows(Func<
IEndpointRouteBuilder
, string, Delegate, IEndpointConventionBuilder> map, string expectedMethod)
505
public async Task MapVerbWithExplicitRouteParameterIsCaseInsensitive(Func<
IEndpointRouteBuilder
, string, Delegate, IEndpointConventionBuilder> map, string expectedMethod)
547
public async Task MapVerbWithRouteParameterDoesNotFallbackToQuery(Func<
IEndpointRouteBuilder
, string, Delegate, IEndpointConventionBuilder> map, string expectedMethod)
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.SignalR.Tests (4)
MapSignalRTests.cs (4)
267
void ConfigureRoutes(
IEndpointRouteBuilder
endpoints)
307
void ConfigureRoutes(
IEndpointRouteBuilder
endpoints)
338
void ConfigureRoutes(
IEndpointRouteBuilder
routes)
395
private IHost BuildWebHost(Action<
IEndpointRouteBuilder
> configure)
Microsoft.AspNetCore.StaticAssets (9)
Development\StaticAssetDevelopmentRuntimeHandler.cs (1)
166
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,
MvcSandbox (1)
Startup.cs (1)
23
static void ConfigureEndpoints(
IEndpointRouteBuilder
endpoints)
RoutingSandbox (2)
Framework\FrameworkEndpointRouteBuilderExtensions.cs (1)
8
public static IEndpointConventionBuilder MapFramework(this
IEndpointRouteBuilder
endpoints, Action<FrameworkConfigurationBuilder> configure)
HelloExtension\EndpointRouteBuilderExtensions.cs (1)
8
public static IEndpointConventionBuilder MapHello(this
IEndpointRouteBuilder
endpoints, string pattern, string greeter)
RoutingWebSite (2)
HelloExtension\EndpointRouteBuilderExtensions.cs (1)
8
public static IEndpointConventionBuilder MapHello(this
IEndpointRouteBuilder
endpoints, string template, string greeter)
UseEndpointRoutingStartup.cs (1)
131
private IEndpointConventionBuilder MapHostEndpoint(
IEndpointRouteBuilder
endpoints, params string[] hosts)
Sample (1)
EndpointRouteBuilderExtensions.cs (1)
9
public static IEndpointConventionBuilder MapSwaggerUi(this
IEndpointRouteBuilder
endpoints)