16 implementations of IEndpointRouteBuilder
Microsoft.AspNetCore (1)
WebApplication.cs (1)
25public sealed class WebApplication : IHost, IApplicationBuilder, IEndpointRouteBuilder, IAsyncDisposable
Microsoft.AspNetCore.Components.Endpoints.Tests (3)
Builder\RazorComponentsEndpointConventionBuilderExtensionsTest.cs (1)
261private class TestEndpointRouteBuilder : IEndpointRouteBuilder
HotReloadServiceTests.cs (1)
291private class TestEndpointRouteBuilder : IEndpointRouteBuilder
RazorComponentEndpointDataSourceTest.cs (1)
315private class TestEndpointRouteBuilder : IEndpointRouteBuilder
Microsoft.AspNetCore.Components.Server (1)
DependencyInjection\ServerRazorComponentsBuilderExtensions.cs (1)
122private class EndpointRouteBuilder : IEndpointRouteBuilder
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (1)
JsonTranscodingServiceMethodProviderTests.cs (1)
244private class TestEndpointRouteBuilder : IEndpointRouteBuilder
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
MapPathMiddlewareTests.cs (1)
246private class MockWebApplication : IApplicationBuilder, IEndpointRouteBuilder
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
469private class DefaultEndpointRouteBuilder : IEndpointRouteBuilder
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
469private class DefaultEndpointRouteBuilder : IEndpointRouteBuilder
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
EndpointMetadataApiDescriptionProviderTest.cs (1)
1615private class TestEndpointRouteBuilder : IEndpointRouteBuilder
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Builder\PageActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (1)
202private class TestEndpointRouteBuilder : IEndpointRouteBuilder
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (1)
275private class TestEndpointRouteBuilder : IEndpointRouteBuilder
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiDocumentServiceTestsBase.cs (1)
167internal class TestEndpointRouteBuilder : IEndpointRouteBuilder
Microsoft.AspNetCore.Routing (2)
DefaultEndpointRouteBuilder.cs (1)
8internal sealed class DefaultEndpointRouteBuilder : IEndpointRouteBuilder
RouteGroupBuilder.cs (1)
18public sealed class RouteGroupBuilder : IEndpointRouteBuilder, IEndpointConventionBuilder
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
EndpointRoutingShortCircuitBenchmark.cs (1)
98internal class BenchmarkEndpointRouteBuilder : IEndpointRouteBuilder
385 references to IEndpointRouteBuilder
Aspire.Dashboard (1)
Otlp\Http\OtlpHttpEndpointsBuilder.cs (1)
25public static void MapHttpOtlpApi(this IEndpointRouteBuilder endpoints, OtlpOptions options)
CatalogService (1)
CatalogApi.cs (1)
7public static RouteGroupBuilder MapCatalogApi(this IEndpointRouteBuilder routes)
Keycloak.Web (1)
LoginLogoutEndpointRouteBuilderExtensions.cs (1)
9internal static IEndpointConventionBuilder MapLoginAndLogout(this IEndpointRouteBuilder endpoints)
Microsoft.AspNetCore (3)
WebApplication.cs (3)
84ICollection<EndpointDataSource> IEndpointRouteBuilder.DataSources => DataSources; 88IServiceProvider IEndpointRouteBuilder.ServiceProvider => Services; 230IApplicationBuilder IEndpointRouteBuilder.CreateApplicationBuilder() => ((IApplicationBuilder)this).New();
Microsoft.AspNetCore.Authentication.Negotiate.Test (2)
EventTests.cs (1)
434private static void ConfigureEndpoints(IEndpointRouteBuilder builder)
NegotiateHandlerTests.cs (1)
405private static void ConfigureEndpoints(IEndpointRouteBuilder builder)
Microsoft.AspNetCore.Components.Endpoints (15)
Builder\ComponentEndpointConventionBuilderHelper.cs (1)
28public 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 (3)
28private readonly IEndpointRouteBuilder _endpointRouteBuilder; 47IEndpointRouteBuilder endpointRouteBuilder, 202private static IEnumerable<EndpointBuilder> GetBlazorWebJsEndpoint(IEndpointRouteBuilder endpoints)
Builder\RazorComponentEndpointDataSourceFactory.cs (1)
18public RazorComponentEndpointDataSource<TRootComponent> CreateDataSource<[DynamicallyAccessedMembers(Component)] TRootComponent>(IEndpointRouteBuilder endpoints)
Builder\RazorComponentsEndpointConventionBuilder.cs (2)
25IEndpointRouteBuilder endpointRouteBuilder, 47internal 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> 25public static RazorComponentsEndpointConventionBuilder MapRazorComponents<[DynamicallyAccessedMembers(Component)] TRootComponent>(this IEndpointRouteBuilder endpoints) 43IEndpointRouteBuilder endpoints) 56private static void EnsureRazorComponentServices(IEndpointRouteBuilder endpoints)
src\Shared\Components\ResourceCollectionResolver.cs (1)
10internal class ResourceCollectionResolver(IEndpointRouteBuilder endpoints)
Microsoft.AspNetCore.Components.Endpoints.Tests (3)
Builder\RazorComponentsEndpointConventionBuilderExtensionsTest.cs (3)
185var groupEndpoints = Assert.IsAssignableFrom<IEndpointRouteBuilder>(group).DataSources; 211var groupEndpoints = Assert.IsAssignableFrom<IEndpointRouteBuilder>(group).DataSources; 246private RazorComponentsEndpointConventionBuilder CreateRazorComponentsAppBuilder(IEndpointRouteBuilder endpointBuilder)
Microsoft.AspNetCore.Components.Server (10)
Builder\ComponentEndpointRouteBuilderExtensions.cs (10)
15/// Extensions for <see cref="IEndpointRouteBuilder"/>. 22/// <param name="endpoints">The <see cref="IEndpointRouteBuilder"/>.</param> 24public static ComponentEndpointConventionBuilder MapBlazorHub(this IEndpointRouteBuilder endpoints) 34/// <param name="endpoints">The <see cref="IEndpointRouteBuilder"/>.</param> 38this IEndpointRouteBuilder endpoints, 50/// <param name="endpoints">The <see cref="IEndpointRouteBuilder"/>.</param> 54this IEndpointRouteBuilder endpoints, 66/// <param name="endpoints">The <see cref="IEndpointRouteBuilder"/>.</param> 71this IEndpointRouteBuilder endpoints, 96private static IEndpointConventionBuilder GetBlazorEndpoint(IEndpointRouteBuilder endpoints)
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
Builder\WebAssemblyRazorComponentsEndpointConventionBuilderExtensions.cs (1)
54var endpointBuilder = ComponentEndpointConventionBuilderHelper.GetEndpointRouteBuilder(builder);
WebAssemblyEndpointProvider.cs (1)
53private 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> 27this 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> 43this IEndpointRouteBuilder endpoints, 55private static IEndpointConventionBuilder MapHealthChecksCore(IEndpointRouteBuilder endpoints, string pattern, HealthCheckOptions? options)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (1)
JsonTranscodingServiceMethodProviderTests.cs (1)
273IEndpointRouteBuilder 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> 28public 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> 38public 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> 51public 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> 83public static ConnectionEndpointRouteBuilder MapConnections(this IEndpointRouteBuilder endpoints, [StringSyntax("Route")] string pattern, HttpConnectionDispatcherOptions options, Action<IConnectionBuilder> configure)
Microsoft.AspNetCore.Http.Connections.Tests (6)
HttpConnectionDispatcherTests.cs (1)
3640private static IHost CreateHost(Action<IServiceCollection> configureServices, Action<IEndpointRouteBuilder> configureEndpoints,
MapConnectionHandlerTests.cs (5)
248void ConfigureRoutes(IEndpointRouteBuilder endpoints) 288void ConfigureRoutes(IEndpointRouteBuilder endpoints) 319void ConfigureRoutes(IEndpointRouteBuilder endpoints) 358void ConfigureRoutes(IEndpointRouteBuilder endpoints) 484private 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. 40public 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> 27public 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> 50public 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> 94this 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> 144this 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 195this 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 257this 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 318this 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 382this 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> 429public 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> 456public 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> 491public static void MapDynamicControllerRoute<TTransformer>(this IEndpointRouteBuilder endpoints, [StringSyntax("Route")] string pattern, object state, int order) 516private static void EnsureControllerServices(IEndpointRouteBuilder endpoints) 528private static ControllerActionEndpointDataSource GetOrCreateDataSource(IEndpointRouteBuilder endpoints)
Infrastructure\OrderedEndpointsSequenceProviderCache.cs (2)
11private readonly ConcurrentDictionary<IEndpointRouteBuilder, OrderedEndpointsSequenceProvider> _sequenceProviderCache = new(); 13public OrderedEndpointsSequenceProvider GetOrCreateOrderedEndpointsSequenceProvider(IEndpointRouteBuilder endpoints)
Routing\ControllerActionEndpointDataSource.cs (1)
134internal 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> 27public 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 65public 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 120this 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 175this 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 233this 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> 280public 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> 304public 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> 338public static void MapDynamicPageRoute<TTransformer>(this IEndpointRouteBuilder endpoints, [StringSyntax("Route")] string pattern, object state, int order) 362private static void EnsureRazorPagesServices(IEndpointRouteBuilder endpoints) 374private static PageActionEndpointDataSource GetOrCreateDataSource(IEndpointRouteBuilder endpoints)
Infrastructure\PageActionEndpointDataSource.cs (1)
74internal void AddDynamicPageEndpoint(IEndpointRouteBuilder endpoints, string pattern, Type transformerType, object? state, int? order = null)
Microsoft.AspNetCore.Mvc.RazorPages.Test (2)
Builder\PageActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (2)
166var groupEndpoints = Assert.IsAssignableFrom<IEndpointRouteBuilder>(group).DataSources; 192var 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)
10internal class ResourceCollectionResolver(IEndpointRouteBuilder endpoints)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (2)
221var groupEndpoints = Assert.IsAssignableFrom<IEndpointRouteBuilder>(group).DataSources; 256var 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> 28public static IEndpointConventionBuilder MapOpenApi(this IEndpointRouteBuilder endpoints, [StringSyntax("Route")] string pattern = OpenApiConstants.DefaultOpenApiRoute)
Microsoft.AspNetCore.OpenApi.Microbenchmarks (2)
GenerationBenchmarks.cs (1)
23private readonly IEndpointRouteBuilder _builder = CreateBuilder();
TransformersBenchmark.cs (1)
24private readonly IEndpointRouteBuilder _builder = CreateBuilder();
Microsoft.AspNetCore.OpenApi.Tests (5)
Extensions\OpenApiRouteHandlerBuilderExtensionTests.cs (1)
247private RouteEndpointDataSource GetBuilderEndpointDataSource(IEndpointRouteBuilder endpointRouteBuilder)
Services\OpenApiDocumentServiceTestsBase.cs (4)
31public static async Task VerifyOpenApiDocument(IEndpointRouteBuilder builder, Action<OpenApiDocument> verifyOpenApiDocument, CancellationToken cancellationToken = default) 34public static async Task VerifyOpenApiDocument(IEndpointRouteBuilder builder, OpenApiOptions openApiOptions, Action<OpenApiDocument> verifyOpenApiDocument, CancellationToken cancellationToken = default) 51internal static OpenApiDocumentService CreateDocumentService(IEndpointRouteBuilder builder, ActionDescriptor actionDescriptor) 112internal 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"/>. 37public 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"/>. 49public 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> 66this 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> 82this 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> 98this 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> 114this 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> 130this 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> 147this 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> 166this 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> 182this IEndpointRouteBuilder endpoints, 190this 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> 231this 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> 249this 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> 267this 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> 285this 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> 303this 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> 322this 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> 342this 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> 360this 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 388public 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 417this IEndpointRouteBuilder endpoints, 427this IEndpointRouteBuilder endpoints, 442internal static RouteEndpointDataSource GetOrAddRouteEndpointDataSource(this IEndpointRouteBuilder endpoints)
Builder\EndpointRoutingApplicationBuilderExtensions.cs (10)
28/// <see cref="UseEndpoints(IApplicationBuilder, Action{IEndpointRouteBuilder})"/> for the same <see cref="IApplicationBuilder"/> 45IEndpointRouteBuilder endpointRouteBuilder; 48endpointRouteBuilder = (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 88public static IApplicationBuilder UseEndpoints(this IApplicationBuilder builder, Action<IEndpointRouteBuilder> configure) 95VerifyEndpointRoutingMiddlewareIsRegistered(builder, out var endpointRouteBuilder); 129private static void VerifyEndpointRoutingMiddlewareIsRegistered(IApplicationBuilder app, out IEndpointRouteBuilder endpointRouteBuilder) 141endpointRouteBuilder = (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 39public 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 69this IEndpointRouteBuilder endpoints,
Builder\RouteHandlerServices.cs (4)
26/// <param name="endpoints">The <see cref="IEndpointRouteBuilder"/> to add the route to.</param> 34IEndpointRouteBuilder endpoints, 55/// <param name="endpoints">The <see cref="IEndpointRouteBuilder"/> to add the route to.</param> 64IEndpointRouteBuilder endpoints,
EndpointRoutingMiddleware.cs (1)
37IEndpointRouteBuilder 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)"/> 20private readonly IEndpointRouteBuilder _outerEndpointRouteBuilder; 27internal RouteGroupBuilder(IEndpointRouteBuilder outerEndpointRouteBuilder, RoutePattern partialPrefix) 34IServiceProvider IEndpointRouteBuilder.ServiceProvider => _outerEndpointRouteBuilder.ServiceProvider; 35IApplicationBuilder IEndpointRouteBuilder.CreateApplicationBuilder() => _outerEndpointRouteBuilder.CreateApplicationBuilder(); 36ICollection<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> 23public 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 => 392public 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)
305var mockRouteBuilder = new Mock<IEndpointRouteBuilder>(); 308var routeBuilder = mockRouteBuilder.Object; 335var routeBuilder = new Mock<IEndpointRouteBuilder>().Object;
Builder\FallbackEndpointRouteBuilderExtensionsTest.cs (1)
13private EndpointDataSource GetBuilderEndpointDataSource(IEndpointRouteBuilder endpointRouteBuilder) =>
Builder\GroupTest.cs (3)
17private EndpointDataSource GetEndpointDataSource(IEndpointRouteBuilder endpointRouteBuilder) 306((IEndpointRouteBuilder)group).DataSources.Add(new TestCustomEndpintDataSource()); 368((IEndpointRouteBuilder)group).DataSources.Add(dynamicDataSource);
Builder\RequestDelegateEndpointRouteBuilderExtensionsTest.cs (17)
20private EndpointDataSource GetBuilderEndpointDataSource(IEndpointRouteBuilder endpointRouteBuilder) => 23private RouteEndpointBuilder GetRouteEndpointBuilder(IEndpointRouteBuilder endpointRouteBuilder) => 34IEndpointConventionBuilder MapGet(IEndpointRouteBuilder routes, string template, RequestDelegate action) => 37IEndpointConventionBuilder MapPost(IEndpointRouteBuilder routes, string template, RequestDelegate action) => 40IEndpointConventionBuilder MapPut(IEndpointRouteBuilder routes, string template, RequestDelegate action) => 43IEndpointConventionBuilder MapDelete(IEndpointRouteBuilder routes, string template, RequestDelegate action) => 46IEndpointConventionBuilder Map(IEndpointRouteBuilder routes, string template, RequestDelegate action) => 51new object[] { (Func<IEndpointRouteBuilder, string, RequestDelegate, IEndpointConventionBuilder>)MapGet }, 52new object[] { (Func<IEndpointRouteBuilder, string, RequestDelegate, IEndpointConventionBuilder>)MapPost }, 53new object[] { (Func<IEndpointRouteBuilder, string, RequestDelegate, IEndpointConventionBuilder>)MapPut }, 54new object[] { (Func<IEndpointRouteBuilder, string, RequestDelegate, IEndpointConventionBuilder>)MapDelete }, 55new object[] { (Func<IEndpointRouteBuilder, string, RequestDelegate, IEndpointConventionBuilder>)Map }, 80public async Task MapEndpoint_ReturnGenericTypeTask_GeneratedDelegate(Func<IEndpointRouteBuilder, string, RequestDelegate, IEndpointConventionBuilder> map) 112public async Task MapEndpoint_CanBeFiltered_EndpointFilterFactory(Func<IEndpointRouteBuilder, string, RequestDelegate, IEndpointConventionBuilder> map) 327public void MapEndpoint_UsesOriginalRequestDelegateInstance_IfFilterDoesNotChangePerRequestBehavior(Func<IEndpointRouteBuilder, string, RequestDelegate, IEndpointConventionBuilder> map) 431public void Map_EndpointMetadataNotDuplicated(Func<IEndpointRouteBuilder, string, RequestDelegate, IEndpointConventionBuilder> map) 454public void AddingMetadataAfterBuildingEndpointThrows(Func<IEndpointRouteBuilder, string, RequestDelegate, IEndpointConventionBuilder> map)
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (18)
20private RouteEndpointDataSource GetBuilderEndpointDataSource(IEndpointRouteBuilder endpointRouteBuilder) 25private RouteEndpointBuilder GetRouteEndpointBuilder(IEndpointRouteBuilder endpointRouteBuilder) 34IEndpointConventionBuilder MapGet(IEndpointRouteBuilder routes, string template, Delegate action) => 37IEndpointConventionBuilder MapPost(IEndpointRouteBuilder routes, string template, Delegate action) => 40IEndpointConventionBuilder MapPut(IEndpointRouteBuilder routes, string template, Delegate action) => 43IEndpointConventionBuilder MapDelete(IEndpointRouteBuilder routes, string template, Delegate action) => 46IEndpointConventionBuilder MapPatch(IEndpointRouteBuilder routes, string template, Delegate action) => 49IEndpointConventionBuilder Map(IEndpointRouteBuilder routes, string template, Delegate action) => 54new object?[] { (Func<IEndpointRouteBuilder, string, Delegate, IEndpointConventionBuilder>)MapGet, "GET" }, 55new object?[] { (Func<IEndpointRouteBuilder, string, Delegate, IEndpointConventionBuilder>)MapPost, "POST" }, 56new object?[] { (Func<IEndpointRouteBuilder, string, Delegate, IEndpointConventionBuilder>)MapPut, "PUT" }, 57new object?[] { (Func<IEndpointRouteBuilder, string, Delegate, IEndpointConventionBuilder>)MapDelete, "DELETE" }, 58new object?[] { (Func<IEndpointRouteBuilder, string, Delegate, IEndpointConventionBuilder>)MapPatch, "PATCH" }, 59new object?[] { (Func<IEndpointRouteBuilder, string, Delegate, IEndpointConventionBuilder>)Map, null }, 450public void MapVerbDoesNotDuplicateMetadata(Func<IEndpointRouteBuilder, string, Delegate, IEndpointConventionBuilder> map, string expectedMethod) 481public void AddingMetadataAfterBuildingEndpointThrows(Func<IEndpointRouteBuilder, string, Delegate, IEndpointConventionBuilder> map, string expectedMethod) 505public async Task MapVerbWithExplicitRouteParameterIsCaseInsensitive(Func<IEndpointRouteBuilder, string, Delegate, IEndpointConventionBuilder> map, string expectedMethod) 547public 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> 26public 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> 39public 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)
267void ConfigureRoutes(IEndpointRouteBuilder endpoints) 307void ConfigureRoutes(IEndpointRouteBuilder endpoints) 338void ConfigureRoutes(IEndpointRouteBuilder routes) 395private IHost BuildWebHost(Action<IEndpointRouteBuilder> configure)
Microsoft.AspNetCore.StaticAssets (9)
Development\StaticAssetDevelopmentRuntimeHandler.cs (1)
166IEndpointRouteBuilder endpoints,
Infrastructure\StaticAssetsEndpointDataSourceHelper.cs (2)
18public static bool HasStaticAssetsDataSource(IEndpointRouteBuilder builder, string? staticAssetsManifestPath = null) 39IEndpointRouteBuilder endpointRouteBuilder,
StaticAssetsEndpointRouteBuilderExtensions.cs (5)
20/// <param name="endpoints">The <see cref="IEndpointRouteBuilder"/>.</param> 26public static StaticAssetsEndpointConventionBuilder MapStaticAssets(this IEndpointRouteBuilder endpoints, string? staticAssetsManifestPath = null) 48IEndpointRouteBuilder endpoints, 73private static StaticAssetsEndpointConventionBuilder? GetExistingBuilder(IEndpointRouteBuilder endpoints, string manifestPath) 87internal static StaticAssetsEndpointConventionBuilder MapStaticAssets(this IEndpointRouteBuilder endpoints, StaticAssetsManifest manifest)
StaticAssetsManifest.cs (1)
38internal 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 48this 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 83this 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 125this 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 166this IEndpointRouteBuilder endpoints, 181IEndpointRouteBuilder endpoints,
MvcSandbox (1)
Startup.cs (1)
23static void ConfigureEndpoints(IEndpointRouteBuilder endpoints)
RoutingSandbox (2)
Framework\FrameworkEndpointRouteBuilderExtensions.cs (1)
8public static IEndpointConventionBuilder MapFramework(this IEndpointRouteBuilder endpoints, Action<FrameworkConfigurationBuilder> configure)
HelloExtension\EndpointRouteBuilderExtensions.cs (1)
8public static IEndpointConventionBuilder MapHello(this IEndpointRouteBuilder endpoints, string pattern, string greeter)
RoutingWebSite (2)
HelloExtension\EndpointRouteBuilderExtensions.cs (1)
8public static IEndpointConventionBuilder MapHello(this IEndpointRouteBuilder endpoints, string template, string greeter)
UseEndpointRoutingStartup.cs (1)
131private IEndpointConventionBuilder MapHostEndpoint(IEndpointRouteBuilder endpoints, params string[] hosts)
Sample (1)
EndpointRouteBuilderExtensions.cs (1)
9public static IEndpointConventionBuilder MapSwaggerUi(this IEndpointRouteBuilder endpoints)