1 interface inheriting from IEndpointConventionBuilder
Microsoft.AspNetCore.SignalR (1)
IHubEndpointConventionBuilder.cs (1)
9public interface IHubEndpointConventionBuilder : IEndpointConventionBuilder
19 implementations of IEndpointConventionBuilder
Microsoft.AspNetCore.Authorization.Test (1)
AuthorizationEndpointConventionBuilderExtensionsTests.cs (1)
251private class TestEndpointConventionBuilder : IEndpointConventionBuilder
Microsoft.AspNetCore.Components.Endpoints (1)
Builder\RazorComponentsEndpointConventionBuilder.cs (1)
15public sealed class RazorComponentsEndpointConventionBuilder : IEndpointConventionBuilder
Microsoft.AspNetCore.Cors.Test (1)
CorsEndpointConventionBuilderExtensionsTests.cs (1)
96private class TestEndpointConventionBuilder : IEndpointConventionBuilder
Microsoft.AspNetCore.Http.Connections (2)
ConnectionEndpointRouteBuilder.cs (1)
9public sealed class ConnectionEndpointRouteBuilder : IEndpointConventionBuilder
ConnectionEndpointRouteBuilderExtensions.cs (1)
133private sealed class CompositeEndpointConventionBuilder : IEndpointConventionBuilder
Microsoft.AspNetCore.Http.Extensions.Tests (1)
HttpMetricsEndpointConventionBuilderExtensionsTests.cs (1)
20private sealed class TestEndointConventionBuilder : EndpointBuilder, IEndpointConventionBuilder
Microsoft.AspNetCore.HttpLogging.Tests (1)
HttpLoggingEndpointConventionBuilderTests.cs (1)
62internal class TestEndpointConventionBuilder : IEndpointConventionBuilder
Microsoft.AspNetCore.Mvc.Core (1)
Builder\ControllerActionEndpointConventionBuilder.cs (1)
12public sealed class ControllerActionEndpointConventionBuilder : IEndpointConventionBuilder
Microsoft.AspNetCore.Mvc.RazorPages (1)
Builder\PageActionEndpointConventionBuilder.cs (1)
12public sealed class PageActionEndpointConventionBuilder : IEndpointConventionBuilder
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiGeneratorTests.cs (1)
1106private class TestEndpointConventionBuilder : EndpointBuilder, IEndpointConventionBuilder
Microsoft.AspNetCore.RateLimiting.Tests (1)
TestEndpointBuilder.cs (1)
22internal class TestEndpointConventionBuilder : IEndpointConventionBuilder
Microsoft.AspNetCore.Routing (3)
Builder\RouteHandlerBuilder.cs (1)
9public sealed class RouteHandlerBuilder : IEndpointConventionBuilder
RouteGroupBuilder.cs (1)
18public sealed class RouteGroupBuilder : IEndpointRouteBuilder, IEndpointConventionBuilder
ShortCircuit\RouteShortCircuitEndpointRouteBuilderExtensions.cs (1)
49private sealed class EndpointConventionBuilder : IEndpointConventionBuilder
Microsoft.AspNetCore.Routing.Tests (3)
Builder\OpenApiRouteHandlerBuilderExtensionsTest.cs (1)
156private sealed class TestEndointConventionBuilder : EndpointBuilder, IEndpointConventionBuilder
Builder\RoutingEndpointConventionBuilderExtensionsTest.cs (2)
250private class TestEndpointConventionBuilder : IEndpointConventionBuilder 278private class DefaultEndpointConventionBuilder : IEndpointConventionBuilder
Microsoft.AspNetCore.StaticAssets (1)
StaticAssetsEndpointConventionBuilder.cs (1)
11public sealed class StaticAssetsEndpointConventionBuilder : IEndpointConventionBuilder
RoutingSandbox (1)
Framework\FrameworkEndpointDataSource.cs (1)
10internal class FrameworkEndpointDataSource : EndpointDataSource, IEndpointConventionBuilder
262 references to IEndpointConventionBuilder
Aspire.Dashboard (1)
Otlp\Http\OtlpHttpEndpointsBuilder.cs (1)
97private static T AddOtlpHttpMetadata<T>(this T builder) where T : IEndpointConventionBuilder
Keycloak.Web (1)
LoginLogoutEndpointRouteBuilderExtensions.cs (1)
9internal static IEndpointConventionBuilder MapLoginAndLogout(this IEndpointRouteBuilder endpoints)
Microsoft.AspNetCore.Authorization.Policy (9)
AuthorizationEndpointConventionBuilderExtensions.cs (9)
10/// Authorization extension methods for <see cref="IEndpointConventionBuilder"/>. 21public static TBuilder RequireAuthorization<TBuilder>(this TBuilder builder) where TBuilder : IEndpointConventionBuilder 37public static TBuilder RequireAuthorization<TBuilder>(this TBuilder builder, params string[] policyNames) where TBuilder : IEndpointConventionBuilder 58where TBuilder : IEndpointConventionBuilder 83where TBuilder : IEndpointConventionBuilder 104where TBuilder : IEndpointConventionBuilder 125public static TBuilder AllowAnonymous<TBuilder>(this TBuilder builder) where TBuilder : IEndpointConventionBuilder 135where TBuilder : IEndpointConventionBuilder 149where TBuilder : IEndpointConventionBuilder
Microsoft.AspNetCore.Components.Server (8)
Builder\ComponentEndpointConventionBuilder.cs (6)
11private readonly IEndpointConventionBuilder _hubEndpoint; 12private readonly IEndpointConventionBuilder _disconnectEndpoint; 13private readonly IEndpointConventionBuilder _jsInitializersEndpoint; 16IEndpointConventionBuilder hubEndpoint, 17IEndpointConventionBuilder disconnectEndpoint, 18IEndpointConventionBuilder jsInitializersEndpoint)
Builder\ComponentEndpointRouteBuilderExtensions.cs (2)
78var disconnectEndpoint = endpoints.Map( 83var jsInitializersEndpoint = endpoints.Map(
Microsoft.AspNetCore.Cors (4)
Infrastructure\CorsEndpointConventionBuilderExtensions.cs (4)
10/// CORS extension methods for <see cref="IEndpointConventionBuilder"/>. 19public static TBuilder RequireCors<TBuilder>(this TBuilder builder) where TBuilder : IEndpointConventionBuilder 36public static TBuilder RequireCors<TBuilder>(this TBuilder builder, string policyName) where TBuilder : IEndpointConventionBuilder 53public static TBuilder RequireCors<TBuilder>(this TBuilder builder, Action<CorsPolicyBuilder> configurePolicy) where TBuilder : IEndpointConventionBuilder
Microsoft.AspNetCore.Diagnostics.HealthChecks (3)
Builder\HealthCheckEndpointRouteBuilderExtensions.cs (3)
26public static IEndpointConventionBuilder MapHealthChecks( 42public static IEndpointConventionBuilder MapHealthChecks( 55private static IEndpointConventionBuilder MapHealthChecksCore(IEndpointRouteBuilder endpoints, string pattern, HealthCheckOptions? options)
Microsoft.AspNetCore.Http (9)
Timeouts\RequestTimeoutsIEndpointConventionBuilderExtensions.cs (9)
9/// Request timeouts extension methods for <see cref="IEndpointConventionBuilder"/>. 21public static IEndpointConventionBuilder WithRequestTimeout(this IEndpointConventionBuilder builder, TimeSpan timeout) 35public static IEndpointConventionBuilder WithRequestTimeout(this IEndpointConventionBuilder builder, string policyName) 47public static IEndpointConventionBuilder WithRequestTimeout(this IEndpointConventionBuilder builder, RequestTimeoutPolicy policy) 59public static IEndpointConventionBuilder DisableRequestTimeout(this IEndpointConventionBuilder builder)
Microsoft.AspNetCore.Http.Connections (9)
ConnectionEndpointRouteBuilder.cs (2)
11private readonly IEndpointConventionBuilder _endpointConventionBuilder; 13internal ConnectionEndpointRouteBuilder(IEndpointConventionBuilder endpointConventionBuilder)
ConnectionEndpointRouteBuilderExtensions.cs (7)
94var conventionBuilders = new List<IEndpointConventionBuilder>(); 102var negotiateBuilder = endpoints.Map(pattern + "/negotiate", negotiateHandler); 114var executeBuilder = endpoints.Map(pattern, executehandler); 135private readonly List<IEndpointConventionBuilder> _endpointConventionBuilders; 137public CompositeEndpointConventionBuilder(List<IEndpointConventionBuilder> endpointConventionBuilders) 144foreach (var endpointConventionBuilder in _endpointConventionBuilders) 152foreach (var endpointConventionBuilder in _endpointConventionBuilders)
Microsoft.AspNetCore.Http.Connections.Tests (1)
MapConnectionHandlerTests.cs (1)
505private IHost BuildWebHost<TConnectionHandler>(string path, Action<HttpConnectionDispatcherOptions> configureOptions, Action<IEndpointConventionBuilder> configureEndpoints = null) where TConnectionHandler : ConnectionHandler
Microsoft.AspNetCore.Http.Extensions (2)
HttpMetricsEndpointConventionBuilderExtensions.cs (2)
9/// HTTP metrics extension methods for <see cref="IEndpointConventionBuilder"/>. 21public static TBuilder DisableHttpMetrics<TBuilder>(this TBuilder builder) where TBuilder : IEndpointConventionBuilder
Microsoft.AspNetCore.HttpLogging (2)
HttpLoggingEndpointConventionBuilderExtensions.cs (2)
9/// HttpLogging middleware extension methods for <see cref="IEndpointConventionBuilder"/>. 23public static TBuilder WithHttpLogging<TBuilder>(this TBuilder builder, HttpLoggingFields loggingFields, int? requestBodyLogLimit = null, int? responseBodyLogLimit = null) where TBuilder : IEndpointConventionBuilder
Microsoft.AspNetCore.Identity (4)
IdentityApiEndpointRouteBuilderExtensions.cs (4)
39/// <returns>An <see cref="IEndpointConventionBuilder"/> to further customize the added endpoints.</returns> 40public static IEndpointConventionBuilder MapIdentityApi<TUser>(this IEndpointRouteBuilder endpoints) 468private sealed class IdentityEndpointsConventionBuilder(RouteGroupBuilder inner) : IEndpointConventionBuilder 470private IEndpointConventionBuilder InnerAsConventionBuilder => inner;
Microsoft.AspNetCore.Mvc.Core (8)
Builder\ControllerEndpointRouteBuilderExtensions.cs (8)
194public static IEndpointConventionBuilder MapFallbackToController( 212var builder = endpoints.MapFallback(context => Task.CompletedTask); 256public static IEndpointConventionBuilder MapFallbackToController( 276var builder = endpoints.MapFallback(pattern, context => Task.CompletedTask); 317public static IEndpointConventionBuilder MapFallbackToAreaController( 336var builder = endpoints.MapFallback(context => Task.CompletedTask); 381public static IEndpointConventionBuilder MapFallbackToAreaController( 402var builder = endpoints.MapFallback(pattern, context => Task.CompletedTask);
Microsoft.AspNetCore.Mvc.RazorPages (8)
Builder\RazorPagesEndpointRouteBuilderExtensions.cs (8)
65public static IEndpointConventionBuilder MapFallbackToPage(this IEndpointRouteBuilder endpoints, string page) 81var builder = endpoints.MapFallback(context => Task.CompletedTask); 119public static IEndpointConventionBuilder MapFallbackToPage( 139var builder = endpoints.MapFallback(pattern, context => Task.CompletedTask); 174public static IEndpointConventionBuilder MapFallbackToAreaPage( 193var builder = endpoints.MapFallback(context => Task.CompletedTask); 232public static IEndpointConventionBuilder MapFallbackToAreaPage( 253var builder = endpoints.MapFallback(pattern, context => Task.CompletedTask);
Microsoft.AspNetCore.OpenApi (7)
Extensions\OpenApiEndpointConventionBuilderExtensions.cs (6)
31/// <param name="builder">The <see cref="IEndpointConventionBuilder"/>.</param> 32/// <returns>A <see cref="IEndpointConventionBuilder"/> that can be used to further customize the endpoint.</returns> 35public static TBuilder WithOpenApi<TBuilder>(this TBuilder builder) where TBuilder : IEndpointConventionBuilder 49/// <param name="builder">The <see cref="IEndpointConventionBuilder"/>.</param> 51/// <returns>A <see cref="IEndpointConventionBuilder"/> that can be used to further customize the endpoint.</returns> 55where TBuilder : IEndpointConventionBuilder
Extensions\OpenApiEndpointRouteBuilderExtensions.cs (1)
28public static IEndpointConventionBuilder MapOpenApi(this IEndpointRouteBuilder endpoints, [StringSyntax("Route")] string pattern = OpenApiConstants.DefaultOpenApiRoute)
Microsoft.AspNetCore.OpenApi.Tests (2)
Extensions\OpenApiEndpointRouteBuilderExtensionsTests.cs (2)
26var returnedBuilder = builder.MapOpenApi(); 29Assert.IsAssignableFrom<IEndpointConventionBuilder>(returnedBuilder);
Microsoft.AspNetCore.OutputCaching (7)
Policies\OutputCacheConventionBuilderExtensions.cs (7)
17public static TBuilder CacheOutput<TBuilder>(this TBuilder builder) where TBuilder : IEndpointConventionBuilder 33public static TBuilder CacheOutput<TBuilder>(this TBuilder builder, IOutputCachePolicy policy) where TBuilder : IEndpointConventionBuilder 49/// <param name="builder">The <see cref="IEndpointConventionBuilder"/>.</param> 52where TBuilder : IEndpointConventionBuilder 58/// <param name="builder">The <see cref="IEndpointConventionBuilder"/>.</param> 61public static TBuilder CacheOutput<TBuilder>(this TBuilder builder, Action<OutputCachePolicyBuilder> policy, bool excludeDefaultPolicy) where TBuilder : IEndpointConventionBuilder 80public static TBuilder CacheOutput<TBuilder>(this TBuilder builder, string policyName) where TBuilder : IEndpointConventionBuilder
Microsoft.AspNetCore.RateLimiting (4)
RateLimiterEndpointConventionBuilderExtensions.cs (4)
9/// Rate limiter extension methods for <see cref="IEndpointConventionBuilder"/>. 19public static TBuilder RequireRateLimiting<TBuilder>(this TBuilder builder, string policyName) where TBuilder : IEndpointConventionBuilder 38public static TBuilder RequireRateLimiting<TBuilder, TPartitionKey>(this TBuilder builder, IRateLimiterPolicy<TPartitionKey> policy) where TBuilder : IEndpointConventionBuilder 56public static TBuilder DisableRateLimiting<TBuilder>(this TBuilder builder) where TBuilder : IEndpointConventionBuilder
Microsoft.AspNetCore.Routing (97)
Builder\EndpointFilterExtensions.cs (5)
22public static TBuilder AddEndpointFilter<TBuilder>(this TBuilder builder, IEndpointFilter filter) where TBuilder : IEndpointConventionBuilder => 28/// <typeparam name="TBuilder">The type of the <see cref="IEndpointConventionBuilder"/> to configure.</typeparam> 33where TBuilder : IEndpointConventionBuilder 93where TBuilder : IEndpointConventionBuilder 105where TBuilder : IEndpointConventionBuilder
Builder\EndpointRouteBuilderExtensions.cs (19)
34/// A <see cref="RouteGroupBuilder"/> that is both an <see cref="IEndpointRouteBuilder"/> and an <see cref="IEndpointConventionBuilder"/>. 46/// A <see cref="RouteGroupBuilder"/> that is both an <see cref="IEndpointRouteBuilder"/> and an <see cref="IEndpointConventionBuilder"/>. 64/// <returns>A <see cref="IEndpointConventionBuilder"/> that can be used to further customize the endpoint.</returns> 65public static IEndpointConventionBuilder MapGet( 80/// <returns>A <see cref="IEndpointConventionBuilder"/> that can be used to further customize the endpoint.</returns> 81public static IEndpointConventionBuilder MapPost( 96/// <returns>A <see cref="IEndpointConventionBuilder"/> that can be used to further customize the endpoint.</returns> 97public static IEndpointConventionBuilder MapPut( 112/// <returns>A <see cref="IEndpointConventionBuilder"/> that can be used to further customize the endpoint.</returns> 113public static IEndpointConventionBuilder MapDelete( 128/// <returns>A <see cref="IEndpointConventionBuilder"/> that can be used to further customize the endpoint.</returns> 129public static IEndpointConventionBuilder MapPatch( 145/// <returns>A <see cref="IEndpointConventionBuilder"/> that can be used to further customize the endpoint.</returns> 146public static IEndpointConventionBuilder MapMethods( 164/// <returns>A <see cref="IEndpointConventionBuilder"/> that can be used to further customize the endpoint.</returns> 165public static IEndpointConventionBuilder Map( 180/// <returns>A <see cref="IEndpointConventionBuilder"/> that can be used to further customize the endpoint.</returns> 181public static IEndpointConventionBuilder Map( 189private static IEndpointConventionBuilder Map(
Builder\FallbackEndpointRouteBuilderExtensions.cs (5)
26/// <returns>A <see cref="IEndpointConventionBuilder"/> that can be used to further customize the endpoint.</returns> 39public static IEndpointConventionBuilder MapFallback(this IEndpointRouteBuilder endpoints, RequestDelegate requestDelegate) 54/// <returns>A <see cref="IEndpointConventionBuilder"/> that can be used to further customize the endpoint.</returns> 68public static IEndpointConventionBuilder MapFallback( 77var conventionBuilder = endpoints.Map(pattern, requestDelegate);
Builder\OpenApiRouteHandlerBuilderExtensions.cs (15)
23/// <param name="builder">The <see cref="IEndpointConventionBuilder"/>.</param> 24/// <returns>A <see cref="IEndpointConventionBuilder"/> that can be used to further customize the endpoint.</returns> 25public static TBuilder ExcludeFromDescription<TBuilder>(this TBuilder builder) where TBuilder : IEndpointConventionBuilder 116/// <param name="builder">The <see cref="IEndpointConventionBuilder"/>.</param> 119/// <returns>A <see cref="IEndpointConventionBuilder"/> that can be used to further customize the endpoint.</returns> 123where TBuilder : IEndpointConventionBuilder 158/// <param name="builder">The <see cref="IEndpointConventionBuilder"/>.</param> 161/// <returns>A <see cref="IEndpointConventionBuilder"/> that can be used to further customize the endpoint.</returns> 168where TBuilder : IEndpointConventionBuilder 187/// <param name="builder">The <see cref="IEndpointConventionBuilder"/>.</param> 190public static TBuilder WithTags<TBuilder>(this TBuilder builder, params string[] tags) where TBuilder : IEndpointConventionBuilder 287/// <param name="builder">The <see cref="IEndpointConventionBuilder"/>.</param> 290public static TBuilder WithDescription<TBuilder>(this TBuilder builder, string description) where TBuilder : IEndpointConventionBuilder 297/// <param name="builder">The <see cref="IEndpointConventionBuilder"/>.</param> 300public static TBuilder WithSummary<TBuilder>(this TBuilder builder, string summary) where TBuilder : IEndpointConventionBuilder
Builder\RouteHandlerBuilder.cs (6)
11private readonly IEnumerable<IEndpointConventionBuilder>? _endpointConventionBuilders; 23/// <see cref="IEndpointConventionBuilder" /> instances. 25/// <param name="endpointConventionBuilders">A sequence of <see cref="IEndpointConventionBuilder" /> instances.</param> 26public RouteHandlerBuilder(IEnumerable<IEndpointConventionBuilder> endpointConventionBuilders) 43foreach (var endpointConventionBuilder in _endpointConventionBuilders!) 59foreach (var endpointConventionBuilder in _endpointConventionBuilders!)
Builder\RoutingEndpointConventionBuilderExtensions.cs (35)
11/// Extension methods for adding routing metadata to endpoint instances using <see cref="IEndpointConventionBuilder"/>. 18/// <param name="builder">The <see cref="IEndpointConventionBuilder"/> to add the metadata to.</param> 25public static TBuilder RequireHost<TBuilder>(this TBuilder builder, params string[] hosts) where TBuilder : IEndpointConventionBuilder 41/// <param name="builder">The <see cref="IEndpointConventionBuilder"/>.</param> 43/// <returns>The <see cref="IEndpointConventionBuilder"/>.</returns> 44public static TBuilder WithDisplayName<TBuilder>(this TBuilder builder, string displayName) where TBuilder : IEndpointConventionBuilder 60/// <param name="builder">The <see cref="IEndpointConventionBuilder"/>.</param> 62/// <returns>The <see cref="IEndpointConventionBuilder"/>.</returns> 63public static TBuilder WithDisplayName<TBuilder>(this TBuilder builder, Func<EndpointBuilder, string> func) where TBuilder : IEndpointConventionBuilder 80/// <param name="builder">The <see cref="IEndpointConventionBuilder"/>.</param> 82/// <returns>The <see cref="IEndpointConventionBuilder"/>.</returns> 83public static TBuilder WithMetadata<TBuilder>(this TBuilder builder, params object[] items) where TBuilder : IEndpointConventionBuilder 101/// on the target <see cref="IEndpointConventionBuilder"/> given the <paramref name="endpointName" />. 105/// <param name="builder">The <see cref="IEndpointConventionBuilder"/>.</param> 107/// <returns>The <see cref="IEndpointConventionBuilder"/>.</returns> 108public static TBuilder WithName<TBuilder>(this TBuilder builder, string endpointName) where TBuilder : IEndpointConventionBuilder 116/// on the target <see cref="IEndpointConventionBuilder"/> given the <paramref name="endpointGroupName" />. 120/// <param name="builder">The <see cref="IEndpointConventionBuilder"/>.</param> 122/// <returns>The <see cref="IEndpointConventionBuilder"/>.</returns> 123public static TBuilder WithGroupName<TBuilder>(this TBuilder builder, string endpointGroupName) where TBuilder : IEndpointConventionBuilder 133/// <param name="builder">The <see cref="IEndpointConventionBuilder"/>.</param> 135/// <returns>The <see cref="IEndpointConventionBuilder"/>.</returns> 136public static TBuilder WithOrder<TBuilder>(this TBuilder builder, int order) where TBuilder : IEndpointConventionBuilder 154/// the target <see cref="IEndpointConventionBuilder"/>. 156/// <param name="builder">The <see cref="IEndpointConventionBuilder"/>.</param> 157/// <returns>The <see cref="IEndpointConventionBuilder"/>.</returns> 158public static TBuilder DisableAntiforgery<TBuilder>(this TBuilder builder) where TBuilder : IEndpointConventionBuilder 168/// on the target <see cref="IEndpointConventionBuilder"/>. 170/// <param name="builder">The <see cref="IEndpointConventionBuilder"/>.</param> 174/// <returns>The <see cref="IEndpointConventionBuilder"/>.</returns> 179int? maxKeySize = null) where TBuilder : IEndpointConventionBuilder 189/// on the target <see cref="IEndpointConventionBuilder"/>. 191/// <param name="builder">The <see cref="IEndpointConventionBuilder"/>.</param> 202/// <returns>The <see cref="IEndpointConventionBuilder"/>.</returns> 214long? multipartBodyLengthLimit = null) where TBuilder : IEndpointConventionBuilder
RouteGroupBuilder.cs (3)
14/// and <see cref="IEndpointConventionBuilder"/> interfaces. This can be used to add endpoints with the prefix defined by 37void IEndpointConventionBuilder.Add(Action<EndpointBuilder> convention) => _conventions.Add(convention); 38void IEndpointConventionBuilder.Finally(Action<EndpointBuilder> finalConvention) => _finallyConventions.Add(finalConvention);
RouteGroupContext.cs (2)
23/// via <see cref="IEndpointConventionBuilder.Add(Action{EndpointBuilder})"/>. These should be applied in order when building every <see cref="RouteEndpoint"/> 30/// via <see cref="IEndpointConventionBuilder.Add(Action{EndpointBuilder})"/>. These should be applied in LIFO order when building every <see cref="RouteEndpoint"/>
ShortCircuit\RouteShortCircuitEndpointConventionBuilderExtensions.cs (3)
9/// Short circuit extension methods for <see cref="IEndpointConventionBuilder"/>. 25public static IEndpointConventionBuilder ShortCircuit(this IEndpointConventionBuilder builder, int? statusCode = null)
ShortCircuit\RouteShortCircuitEndpointRouteBuilderExtensions.cs (4)
22/// <returns>A <see cref="IEndpointConventionBuilder"/> that can be used to further customize the endpoint.</returns> 23public static IEndpointConventionBuilder MapShortCircuit(this IEndpointRouteBuilder builder, int statusCode, params string[] routePrefixes) 51private readonly IEndpointConventionBuilder _endpointConventionBuilder; 53public EndpointConventionBuilder(IEndpointConventionBuilder endpointConventionBuilder)
Microsoft.AspNetCore.Routing.FunctionalTests (1)
MinimalFormTests.cs (1)
392public async Task MapRequestDelegate_WithForm_RequiresValidation_InvalidToken_Fails(Func<IEndpointRouteBuilder, IEndpointConventionBuilder> addDelegate)
Microsoft.AspNetCore.Routing.Tests (62)
Builder\GroupTest.cs (6)
163((IEndpointConventionBuilder)outer).Add(builder => 167((IEndpointConventionBuilder)inner).Add(builder => 190((IEndpointConventionBuilder)group).Add(builder => 216((IEndpointConventionBuilder)group).Add(builder => 244((IEndpointConventionBuilder)group).Add(builder => 270((IEndpointConventionBuilder)group).Add(builder =>
Builder\OpenApiRouteHandlerBuilderExtensionsTest.cs (5)
16static void GenericExclude(IEndpointConventionBuilder builder) => builder.ExcludeFromDescription(); 28static void GenericWithTags(IEndpointConventionBuilder builder) => builder.WithTags("a", "b", "c"); 74static void GenericProducesProblem(IEndpointConventionBuilder builder) => builder.ProducesProblem(StatusCodes.Status400BadRequest); 92static void GenericProducesProblem(IEndpointConventionBuilder builder) => builder.ProducesValidationProblem(); 142Action<IEndpointConventionBuilder> genericSetup,
Builder\RequestDelegateEndpointRouteBuilderExtensionsTest.cs (20)
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) 95var endpointBuilder = map(builder, "/", GenericTypeTaskDelegate); 112public async Task MapEndpoint_CanBeFiltered_EndpointFilterFactory(Func<IEndpointRouteBuilder, string, RequestDelegate, IEndpointConventionBuilder> map) 121var endpointBuilder = map(builder, "/", initialRequestDelegate).AddEndpointFilterFactory(filterFactory: (routeHandlerContext, next) => 327public void MapEndpoint_UsesOriginalRequestDelegateInstance_IfFilterDoesNotChangePerRequestBehavior(Func<IEndpointRouteBuilder, string, RequestDelegate, IEndpointConventionBuilder> map) 334var endpointBuilder = map(builder, "/", initialRequestDelegate).AddEndpointFilterFactory((routeHandlerContext, next) => 431public void Map_EndpointMetadataNotDuplicated(Func<IEndpointRouteBuilder, string, RequestDelegate, IEndpointConventionBuilder> map) 437var endpointBuilder = map(builder, "/", context => Task.CompletedTask).WithMetadata(new EndpointNameMetadata("MapMe")); 454public void AddingMetadataAfterBuildingEndpointThrows(Func<IEndpointRouteBuilder, string, RequestDelegate, IEndpointConventionBuilder> map) 460var endpointBuilder = map(builder, "/", context => Task.CompletedTask).WithMetadata(new EndpointNameMetadata("MapMe"));
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (31)
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) 485var endpointBuilder = map(builder, "/{ID}", () => { }); 505public async Task MapVerbWithExplicitRouteParameterIsCaseInsensitive(Func<IEndpointRouteBuilder, string, Delegate, IEndpointConventionBuilder> map, string expectedMethod) 547public async Task MapVerbWithRouteParameterDoesNotFallbackToQuery(Func<IEndpointRouteBuilder, string, Delegate, IEndpointConventionBuilder> map, string expectedMethod) 857new object[] { (Action<IEndpointConventionBuilder>)((IEndpointConventionBuilder builder) => builder.AddEndpointFilter(new IncrementArgFilter())) }, 858new object[] { (Action<IEndpointConventionBuilder>)((IEndpointConventionBuilder builder) => builder.AddEndpointFilter<IEndpointConventionBuilder, IncrementArgFilter>()) } 865void WithFilter(IEndpointConventionBuilder builder) => 872void WithFilterFactory(IEndpointConventionBuilder builder) => 884new object[] { (Action<IEndpointConventionBuilder>)WithFilter }, 885new object[] { (Action<IEndpointConventionBuilder>)WithFilterFactory } 915public async Task AddEndpointFilterMethods_CanRegisterFilterWithClassAndDelegateImplementations(Action<IEndpointConventionBuilder> addFilter) 931public async Task AddEndpointFilterMethods_WorkWithMapGroup(Action<IEndpointConventionBuilder> addFilter) 1019((IEndpointConventionBuilder)group).Finally(b => 1042((IEndpointConventionBuilder)innerGroup).Finally(b => 1051((IEndpointConventionBuilder)outerGroup).Finally(b =>
Microsoft.AspNetCore.SignalR (2)
HubEndpointConventionBuilder.cs (2)
11private readonly IEndpointConventionBuilder _endpointConventionBuilder; 13internal HubEndpointConventionBuilder(IEndpointConventionBuilder endpointConventionBuilder)
Microsoft.AspNetCore.StaticAssets (1)
Development\StaticAssetDevelopmentRuntimeHandler.cs (1)
196var fallback = endpoints.MapFallback(
Microsoft.AspNetCore.StaticFiles (4)
StaticFilesEndpointRouteBuilderExtensions.cs (4)
47public static IEndpointConventionBuilder MapFallbackToFile( 82public static IEndpointConventionBuilder MapFallbackToFile( 124public static IEndpointConventionBuilder MapFallbackToFile( 165public static IEndpointConventionBuilder MapFallbackToFile(
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 (3)
HelloExtension\EndpointRouteBuilderExtensions.cs (1)
8public static IEndpointConventionBuilder MapHello(this IEndpointRouteBuilder endpoints, string template, string greeter)
UseEndpointRoutingStartup.cs (2)
131private IEndpointConventionBuilder MapHostEndpoint(IEndpointRouteBuilder endpoints, params string[] hosts) 137var conventionBuilder = endpoints.MapGet(
Sample (1)
EndpointRouteBuilderExtensions.cs (1)
9public static IEndpointConventionBuilder MapSwaggerUi(this IEndpointRouteBuilder endpoints)