9 types derived from EndpointBuilder
Microsoft.AspNetCore.Cors.Test (1)
CorsEndpointConventionBuilderExtensionsTests.cs (1)
88private class TestEndpointBuilder : EndpointBuilder
Microsoft.AspNetCore.Http.Extensions (1)
RequestDelegateFactory.cs (1)
2849private sealed class RdfEndpointBuilder : EndpointBuilder
Microsoft.AspNetCore.Http.Results.Tests (1)
ResultsOfTHelperTests.cs (1)
91private class TestEndpointBuilder : EndpointBuilder
Microsoft.AspNetCore.HttpLogging.Tests (1)
HttpLoggingEndpointConventionBuilderTests.cs (1)
54internal class TestEndpointBuilder : EndpointBuilder
Microsoft.AspNetCore.Mvc.Core (1)
Routing\ActionEndpointFactory.cs (1)
547private sealed class InertEndpointBuilder : EndpointBuilder
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiGeneratorTests.cs (1)
1106private class TestEndpointConventionBuilder : EndpointBuilder, IEndpointConventionBuilder
Microsoft.AspNetCore.RateLimiting.Tests (1)
TestEndpointBuilder.cs (1)
14internal class TestEndpointBuilder : EndpointBuilder
Microsoft.AspNetCore.Routing (1)
RouteEndpointBuilder.cs (1)
17public sealed class RouteEndpointBuilder : EndpointBuilder
Microsoft.AspNetCore.Routing.Tests (1)
Builder\OpenApiRouteHandlerBuilderExtensionsTest.cs (1)
149private sealed class TestEndointConventionBuilder : EndpointBuilder, IEndpointConventionBuilder
396 references to EndpointBuilder
Microsoft.AspNetCore.Authorization.Test (3)
AuthorizationEndpointConventionBuilderExtensionsTests.cs (3)
253public IList<Action<EndpointBuilder>> Conventions { get; } = new List<Action<EndpointBuilder>>(); 256public void Add(Action<EndpointBuilder> convention)
Microsoft.AspNetCore.Components.Endpoints (14)
Builder\RazorComponentEndpointDataSource.cs (3)
20private readonly List<Action<EndpointBuilder>> _conventions = new(); 21private readonly List<Action<EndpointBuilder>> _finallyConventions = new(); 37internal List<Action<EndpointBuilder>> Conventions => _conventions;
Builder\RazorComponentEndpointFactory.cs (2)
26IReadOnlyList<Action<EndpointBuilder>> conventions, 27IReadOnlyList<Action<EndpointBuilder>> finallyConventions,
Builder\RazorComponentsEndpointConventionBuilder.cs (7)
12/// Builds conventions that will be used for customization of <see cref="EndpointBuilder"/> instances. 20private readonly List<Action<EndpointBuilder>> _conventions; 21private readonly List<Action<EndpointBuilder>> _finallyConventions; 28List<Action<EndpointBuilder>> conventions, 29List<Action<EndpointBuilder>> finallyConventions) 47public void Add(Action<EndpointBuilder> convention) 60public void Finally(Action<EndpointBuilder> finallyConvention)
Builder\RenderModeEndpointProvider.cs (2)
39List<Action<EndpointBuilder>> conventions, 40List<Action<EndpointBuilder>> finallyConventions)
Microsoft.AspNetCore.Components.Endpoints.Tests (10)
RazorComponentEndpointFactoryTest.cs (10)
19var conventions = new List<Action<EndpointBuilder>>(); 20var finallyConventions = new List<Action<EndpointBuilder>>(); 57var conventions = new List<Action<EndpointBuilder>>() { 61var finallyConventions = new List<Action<EndpointBuilder>>(); 83var conventions = new List<Action<EndpointBuilder>>(); 85var finallyConventions = new List<Action<EndpointBuilder>>() 111var conventions = new List<Action<EndpointBuilder>>(); 113var finallyConventions = new List<Action<EndpointBuilder>>() 140var conventions = new List<Action<EndpointBuilder>>() 145var finallyConventions = new List<Action<EndpointBuilder>>()
Microsoft.AspNetCore.Components.Server (4)
Builder\ComponentEndpointConventionBuilder.cs (4)
7/// Builds conventions that will be used for customization of ComponentHub <see cref="EndpointBuilder"/> instances. 29/// Adds the specified convention to the builder. Conventions are used to customize <see cref="EndpointBuilder"/> instances. 32public void Add(Action<EndpointBuilder> convention) 41public void Finally(Action<EndpointBuilder> finalConvention)
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
ComponentsWebAssemblyStaticAssetsEndpointConventionBuilderExtensions.cs (1)
37private static void WrapEndpoint(EndpointBuilder endpoint)
Microsoft.AspNetCore.Cors.Test (3)
CorsEndpointConventionBuilderExtensionsTests.cs (3)
98public IList<Action<EndpointBuilder>> Conventions { get; } = new List<Action<EndpointBuilder>>(); 101public void Add(Action<EndpointBuilder> convention)
Microsoft.AspNetCore.Http.Abstractions (12)
Extensions\EndpointBuilder.cs (1)
41/// Creates an instance of <see cref="Endpoint"/> from the <see cref="EndpointBuilder"/>.
Extensions\IEndpointConventionBuilder.cs (5)
7/// Builds conventions that will be used for customization of <see cref="EndpointBuilder"/> instances. 15/// Adds the specified convention to the builder. Conventions are used to customize <see cref="EndpointBuilder"/> instances. 18void Add(Action<EndpointBuilder> convention); 22/// via <see cref="Add(Action{EndpointBuilder})"/> 25void Finally(Action<EndpointBuilder> finallyConvention) => throw new NotImplementedException();
Metadata\IEndpointMetadataProvider.cs (3)
21/// Add or remove objects on the <see cref="EndpointBuilder.Metadata"/> property of the <paramref name="builder"/> to modify the <see cref="Endpoint.Metadata"/> being built. 24/// <param name="builder">The <see cref="EndpointBuilder"/> used to construct the endpoint for the given <paramref name="method"/>.</param> 25static abstract void PopulateMetadata(MethodInfo method, EndpointBuilder builder);
Metadata\IEndpointParameterMetadataProvider.cs (3)
21/// Add or remove objects on the <see cref="EndpointBuilder.Metadata"/> property of the <paramref name="builder"/> to modify the <see cref="Endpoint.Metadata"/> being built. 24/// <param name="builder">The <see cref="EndpointBuilder"/> used to construct the endpoint for the given <paramref name="parameter"/>.</param> 25static abstract void PopulateMetadata(ParameterInfo parameter, EndpointBuilder builder);
Microsoft.AspNetCore.Http.Connections (6)
ConnectionEndpointRouteBuilder.cs (4)
7/// Builds conventions that will be used for customization of Connection <see cref="EndpointBuilder"/> instances. 19/// Adds the specified convention to the builder. Conventions are used to customize <see cref="EndpointBuilder"/> instances. 22public void Add(Action<EndpointBuilder> convention) 28public void Finally(Action<EndpointBuilder> finalConvention)
ConnectionEndpointRouteBuilderExtensions.cs (2)
142public void Add(Action<EndpointBuilder> convention) 150public void Finally(Action<EndpointBuilder> finalConvention)
Microsoft.AspNetCore.Http.Extensions (14)
RequestDelegateFactory.cs (3)
277var endpointBuilder = options?.EndpointBuilder ?? new RdfEndpointBuilder(serviceProvider); 298private static RequestDelegateResult CreateRequestDelegateResult(RequestDelegate finalRequestDelegate, EndpointBuilder endpointBuilder) 1005private static void PopulateBuiltInResponseTypeMetadata(Type returnType, EndpointBuilder builder)
RequestDelegateFactoryContext.cs (1)
21public required EndpointBuilder EndpointBuilder { get; init; }
RequestDelegateFactoryOptions.cs (7)
37/// The mutable <see cref="Builder.EndpointBuilder"/> used to assist in the creation of the <see cref="RequestDelegateResult.RequestDelegate"/>. 38/// This is primarily used to run <see cref="EndpointBuilder.FilterFactories"/> and populate inferred <see cref="EndpointBuilder.Metadata"/>. 39/// The <see cref="EndpointBuilder.RequestDelegate"/> must be <see langword="null"/>. After the call to <see cref="RequestDelegateFactory.Create(Delegate, RequestDelegateFactoryOptions?)"/>, 40/// <see cref="EndpointBuilder.RequestDelegate"/> will be the same as <see cref="RequestDelegateResult.RequestDelegate"/>. 43/// Any metadata already in <see cref="EndpointBuilder.Metadata"/> will be included in <see cref="RequestDelegateResult.EndpointMetadata" /> <b>before</b> 50public EndpointBuilder? EndpointBuilder { get; init; }
src\Shared\EndpointMetadataPopulator.cs (3)
21public static void PopulateMetadata(MethodInfo methodInfo, EndpointBuilder builder, IEnumerable<ParameterInfo>? parameters = null) 65private static void PopulateMetadataForParameter<T>(ParameterInfo parameter, EndpointBuilder builder) 71private static void PopulateMetadataForEndpoint<T>(MethodInfo method, EndpointBuilder builder)
Microsoft.AspNetCore.Http.Extensions.Tests (34)
RequestDelegateFactoryTests.cs (18)
3266private EndpointBuilder CreateEndpointBuilder(IEnumerable<object>? metadata = null) 3276private EndpointBuilder CreateEndpointBuilderFromFilterFactories(IEnumerable<Func<EndpointFilterFactoryContext, EndpointFilterDelegate, EndpointFilterDelegate>> filterFactories) 3287public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 3303public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 3322public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 3332public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 3342public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 3353public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 3362public static void PopulateMetadata(ParameterInfo parameter, EndpointBuilder builder) 3380public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 3398public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 3418public static void PopulateMetadata(ParameterInfo parameter, EndpointBuilder builder) 3423public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 3443public static void PopulateMetadata(ParameterInfo parameter, EndpointBuilder builder) 3448public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 3466public static void PopulateMetadata(ParameterInfo parameter, EndpointBuilder builder) 3471public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 3479public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder)
RequestDelegateGenerator\SharedTypes.cs (16)
32public static void PopulateMetadata(ParameterInfo parameter, EndpointBuilder builder) 40public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 559public static void PopulateMetadata(ParameterInfo parameter, EndpointBuilder builder) 564public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 594public static void PopulateMetadata(ParameterInfo parameter, EndpointBuilder builder) 599public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 607public static void PopulateMetadata(ParameterInfo parameter, EndpointBuilder builder) 612public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 619public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 629public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 642public static void PopulateMetadata(ParameterInfo parameter, EndpointBuilder builder) 660public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 683public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 925public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 945public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 958public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder)
Microsoft.AspNetCore.Http.Microbenchmarks (16)
src\Http\Http.Extensions\test\RequestDelegateGenerator\SharedTypes.cs (16)
32public static void PopulateMetadata(ParameterInfo parameter, EndpointBuilder builder) 40public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 559public static void PopulateMetadata(ParameterInfo parameter, EndpointBuilder builder) 564public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 594public static void PopulateMetadata(ParameterInfo parameter, EndpointBuilder builder) 599public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 607public static void PopulateMetadata(ParameterInfo parameter, EndpointBuilder builder) 612public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 619public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 629public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 642public static void PopulateMetadata(ParameterInfo parameter, EndpointBuilder builder) 660public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 683public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 925public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 945public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 958public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder)
Microsoft.AspNetCore.Http.Results (29)
Accepted.cs (1)
79static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method, EndpointBuilder builder)
AcceptedAtRoute.cs (1)
106static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method, EndpointBuilder builder)
AcceptedAtRouteOfT.cs (1)
120static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method, EndpointBuilder builder)
AcceptedOfT.cs (1)
98static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method, EndpointBuilder builder)
BadRequest.cs (1)
49static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method, EndpointBuilder builder)
BadRequestOfT.cs (1)
63static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method, EndpointBuilder builder)
Conflict.cs (1)
49static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method, EndpointBuilder builder)
ConflictOfT.cs (1)
63static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method, EndpointBuilder builder)
Created.cs (1)
79static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method, EndpointBuilder builder)
CreatedAtRoute.cs (1)
106static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method, EndpointBuilder builder)
CreatedAtRouteOfT.cs (1)
123static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method, EndpointBuilder builder)
CreatedOfT.cs (1)
97static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method, EndpointBuilder builder)
InternalServerError.cs (1)
49static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method, EndpointBuilder builder)
InternalServerErrorOfT.cs (1)
63static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method, EndpointBuilder builder)
NoContent.cs (1)
49static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method, EndpointBuilder builder)
NotFound.cs (1)
48static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method, EndpointBuilder builder)
NotFoundOfT.cs (1)
62static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method, EndpointBuilder builder)
Ok.cs (1)
48static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method, EndpointBuilder builder)
OkOfT.cs (1)
62static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method, EndpointBuilder builder)
ResultsOfT.Generated.cs (5)
65static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method, EndpointBuilder builder) 135static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method, EndpointBuilder builder) 214static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method, EndpointBuilder builder) 302static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method, EndpointBuilder builder) 399static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method, EndpointBuilder builder)
ResultsOfTHelper.cs (2)
20public static void PopulateMetadataIfTargetIsIEndpointMetadataProvider<[DynamicallyAccessedMembers(RequireMethods)] TTarget>(MethodInfo method, EndpointBuilder builder) 59private static void PopulateMetadata<TTarget>(MethodInfo method, EndpointBuilder builder) where TTarget : IEndpointMetadataProvider
UnprocessableEntity.cs (1)
49static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method, EndpointBuilder builder)
UnprocessableEntityOfT.cs (1)
63static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method, EndpointBuilder builder)
ValidationProblem.cs (1)
70static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method, EndpointBuilder builder)
Microsoft.AspNetCore.Http.Results.Tests (35)
AcceptedAtRouteOfTResultTests.cs (1)
207private static void PopulateMetadata<TResult>(MethodInfo method, EndpointBuilder builder)
AcceptedAtRouteResultTests.cs (1)
119private static void PopulateMetadata<TResult>(MethodInfo method, EndpointBuilder builder)
AcceptedOfTResultTests.cs (1)
131private static void PopulateMetadata<TResult>(MethodInfo method, EndpointBuilder builder)
AcceptedResultTests.cs (1)
76private static void PopulateMetadata<TResult>(MethodInfo method, EndpointBuilder builder)
BadRequestOfTResultTests.cs (1)
174private static void PopulateMetadata<TResult>(MethodInfo method, EndpointBuilder builder)
BadRequestResultTests.cs (1)
89private static void PopulateMetadata<TResult>(MethodInfo method, EndpointBuilder builder)
ConflictOfTResultTests.cs (1)
152private static void PopulateMetadata<TResult>(MethodInfo method, EndpointBuilder builder)
ConflictResultTests.cs (1)
90private static void PopulateMetadata<TResult>(MethodInfo method, EndpointBuilder builder)
CreatedAtRouteOfTResultTests.cs (1)
174private static void PopulateMetadata<TResult>(MethodInfo method, EndpointBuilder builder)
CreatedAtRouteResultTests.cs (1)
122private static void PopulateMetadata<TResult>(MethodInfo method, EndpointBuilder builder)
CreatedOfTResultTests.cs (1)
171private static void PopulateMetadata<TResult>(MethodInfo method, EndpointBuilder builder)
CreatedResultTests.cs (1)
110private static void PopulateMetadata<TResult>(MethodInfo method, EndpointBuilder builder)
InternalServerErrorOfTResultTests.cs (1)
174private static void PopulateMetadata<TResult>(MethodInfo method, EndpointBuilder builder)
InternalServerErrorResultTests.cs (1)
89private static void PopulateMetadata<TResult>(MethodInfo method, EndpointBuilder builder)
NoContentResultTests.cs (1)
86private static void PopulateMetadata<TResult>(MethodInfo method, EndpointBuilder builder)
NotFoundOfTResultTests.cs (1)
134private static void PopulateMetadata<TResult>(MethodInfo method, EndpointBuilder builder)
NotFoundResultTests.cs (1)
85private static void PopulateMetadata<TResult>(MethodInfo method, EndpointBuilder builder)
OkOfTResultTests.cs (1)
151private static void PopulateMetadata<TResult>(MethodInfo method, EndpointBuilder builder)
OkResultTests.cs (1)
88private static void PopulateMetadata<TResult>(MethodInfo method, EndpointBuilder builder)
ResultsOfTHelperTests.cs (5)
101public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 109static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method, EndpointBuilder builder) 117public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 122static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method, EndpointBuilder builder) 130static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method, EndpointBuilder builder)
ResultsOfTTests.cs (1)
90private static void PopulateMetadata<TTarget>(MethodInfo method, EndpointBuilder builder) where TTarget : IEndpointMetadataProvider
ResultsOfTTests.Generated.cs (7)
1865public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 1879public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 1893public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 1907public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 1921public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 1935public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 1948public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder)
UnprocessableEntityOfTResultTests.cs (1)
151private static void PopulateMetadata<TResult>(MethodInfo method, EndpointBuilder builder)
UnprocessableEntityResultTests.cs (1)
89private static void PopulateMetadata<TResult>(MethodInfo method, EndpointBuilder builder)
ValidationProblemResultTests.cs (1)
141private static void PopulateMetadata<TResult>(MethodInfo method, EndpointBuilder builder)
Microsoft.AspNetCore.HttpLogging.Tests (4)
HttpLoggingEndpointConventionBuilderTests.cs (4)
64public IList<Action<EndpointBuilder>> Conventions { get; } = new List<Action<EndpointBuilder>>(); 66public void Add(Action<EndpointBuilder> convention) 71public TestEndpointConventionBuilder ApplyToEndpoint(EndpointBuilder endpoint)
Microsoft.AspNetCore.Identity (2)
IdentityApiEndpointRouteBuilderExtensions.cs (2)
470public void Add(Action<EndpointBuilder> convention) => InnerAsConventionBuilder.Add(convention); 471public void Finally(Action<EndpointBuilder> finallyConvention) => InnerAsConventionBuilder.Finally(finallyConvention);
Microsoft.AspNetCore.Mvc.Core (50)
Builder\ControllerActionEndpointConventionBuilder.cs (8)
7/// Builds conventions that will be used for customization of <see cref="EndpointBuilder"/> instances. 16private readonly List<Action<EndpointBuilder>> _conventions; 17private readonly List<Action<EndpointBuilder>> _finallyConventions; 19internal ControllerActionEndpointConventionBuilder(object @lock, List<Action<EndpointBuilder>> conventions, List<Action<EndpointBuilder>> finallyConventions) 27/// Adds the specified convention to the builder. Conventions are used to customize <see cref="EndpointBuilder"/> instances. 30public void Add(Action<EndpointBuilder> convention) 43public void Finally(Action<EndpointBuilder> finalConvention)
Routing\ActionEndpointDataSourceBase.cs (10)
25protected readonly List<Action<EndpointBuilder>> Conventions; 26protected readonly List<Action<EndpointBuilder>> FinallyConventions; 37Conventions = new List<Action<EndpointBuilder>>(); 38FinallyConventions = new List<Action<EndpointBuilder>>(); 67IReadOnlyList<Action<EndpointBuilder>> conventions, 68IReadOnlyList<Action<EndpointBuilder>> groupConventions, 69IReadOnlyList<Action<EndpointBuilder>> finallyConventions, 70IReadOnlyList<Action<EndpointBuilder>> groupFinallyConventions); 124groupConventions: Array.Empty<Action<EndpointBuilder>>(), 126groupFinallyConventions: Array.Empty<Action<EndpointBuilder>>());
Routing\ActionEndpointFactory.cs (19)
43IReadOnlyList<Action<EndpointBuilder>> conventions, 44IReadOnlyList<Action<EndpointBuilder>> groupConventions, 45IReadOnlyList<Action<EndpointBuilder>> finallyConventions, 46IReadOnlyList<Action<EndpointBuilder>> groupFinallyConventions, 76perRouteConventions: Array.Empty<Action<EndpointBuilder>>(), 79perRouteFinallyConventions: Array.Empty<Action<EndpointBuilder>>()); 166perRouteConventions: Array.Empty<Action<EndpointBuilder>>(), 169perRouteFinallyConventions: Array.Empty<Action<EndpointBuilder>>()); 179IReadOnlyList<Action<EndpointBuilder>> groupConventions, 180IReadOnlyList<Action<EndpointBuilder>> conventions, 181IReadOnlyList<Action<EndpointBuilder>> groupFinallyConventions, 182IReadOnlyList<Action<EndpointBuilder>> finallyConventions, 329EndpointBuilder builder, 336IReadOnlyList<Action<EndpointBuilder>> groupConventions, 337IReadOnlyList<Action<EndpointBuilder>> conventions, 338IReadOnlyList<Action<EndpointBuilder>> perRouteConventions, 339IReadOnlyList<Action<EndpointBuilder>> groupFinallyConventions, 340IReadOnlyList<Action<EndpointBuilder>> finallyConventions, 341IReadOnlyList<Action<EndpointBuilder>> perRouteFinallyConventions)
Routing\ControllerActionEndpointDataSource.cs (6)
58var conventions = new List<Action<EndpointBuilder>>(); 59var finallyConventions = new List<Action<EndpointBuilder>>(); 68IReadOnlyList<Action<EndpointBuilder>> conventions, 69IReadOnlyList<Action<EndpointBuilder>> groupConventions, 70IReadOnlyList<Action<EndpointBuilder>> finallyConventions, 71IReadOnlyList<Action<EndpointBuilder>> groupFinallyConventions)
Routing\ConventionalRouteEntry.cs (4)
17public readonly IReadOnlyList<Action<EndpointBuilder>> Conventions; 18public readonly IReadOnlyList<Action<EndpointBuilder>> FinallyConventions; 27List<Action<EndpointBuilder>> conventions, 28List<Action<EndpointBuilder>> finallyConventions)
src\Shared\EndpointMetadataPopulator.cs (3)
21public static void PopulateMetadata(MethodInfo methodInfo, EndpointBuilder builder, IEnumerable<ParameterInfo>? parameters = null) 65private static void PopulateMetadataForParameter<T>(ParameterInfo parameter, EndpointBuilder builder) 71private static void PopulateMetadataForEndpoint<T>(MethodInfo method, EndpointBuilder builder)
Microsoft.AspNetCore.Mvc.Core.Test (37)
ApplicationModels\EndpointMetadataProviderTest.cs (14)
105Conventions = new Action<EndpointBuilder>[] 109FinallyConventions = new Action<EndpointBuilder>[] 148Conventions = new Action<EndpointBuilder>[] 169Conventions = new Action<EndpointBuilder>[] 190Conventions = new Action<EndpointBuilder>[] 394public static void PopulateMetadata(ParameterInfo parameter, EndpointBuilder builder) 399public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 407public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 417public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 426public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 439public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 456public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 476public static void PopulateMetadata(ParameterInfo parameter, EndpointBuilder builder) 494public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder)
Routing\ActionEndpointFactoryTest.cs (22)
278conventions: Array.Empty<Action<EndpointBuilder>>(), 279groupConventions: Array.Empty<Action<EndpointBuilder>>(), 280finallyConventions: Array.Empty<Action<EndpointBuilder>>(), 281groupFinallyConventions: Array.Empty<Action<EndpointBuilder>>(), 384conventions: Array.Empty<Action<EndpointBuilder>>(), 385groupConventions: Array.Empty<Action<EndpointBuilder>>(), 386finallyConventions: Array.Empty<Action<EndpointBuilder>>(), 387groupFinallyConventions: Array.Empty<Action<EndpointBuilder>>(), 394return CreateConventionalRoutedEndpoint(action, new ConventionalRouteEntry(routeName: null, template, null, null, null, order: 0, new List<Action<EndpointBuilder>>(), new List<Action<EndpointBuilder>>())); 407conventions: Array.Empty<Action<EndpointBuilder>>(), 408groupConventions: Array.Empty<Action<EndpointBuilder>>(), 409finallyConventions: Array.Empty<Action<EndpointBuilder>>(), 410groupFinallyConventions: Array.Empty<Action<EndpointBuilder>>(), 433conventions: Array.Empty<Action<EndpointBuilder>>(), 434groupConventions: Array.Empty<Action<EndpointBuilder>>(), 435finallyConventions: Array.Empty<Action<EndpointBuilder>>(), 436groupFinallyConventions: Array.Empty<Action<EndpointBuilder>>(), 448List<Action<EndpointBuilder>> conventions = null, 449List<Action<EndpointBuilder>> finallyConventions = null) 451conventions ??= new List<Action<EndpointBuilder>>(); 452finallyConventions ??= new List<Action<EndpointBuilder>>();
Routing\ControllerActionEndpointDataSourceTest.cs (1)
420var groupConventions = new List<Action<EndpointBuilder>>()
Microsoft.AspNetCore.Mvc.RazorPages (16)
Builder\PageActionEndpointConventionBuilder.cs (8)
7/// Builds conventions that will be used for customization of <see cref="EndpointBuilder"/> instances. 16private readonly List<Action<EndpointBuilder>> _conventions; 17private readonly List<Action<EndpointBuilder>> _finallyConventions; 19internal PageActionEndpointConventionBuilder(object @lock, List<Action<EndpointBuilder>> conventions, List<Action<EndpointBuilder>> finallyConventions) 27/// Adds the specified convention to the builder. Conventions are used to customize <see cref="EndpointBuilder"/> instances. 30public void Add(Action<EndpointBuilder> convention) 43public void Finally(Action<EndpointBuilder> finalConvention)
Infrastructure\DefaultPageLoader.cs (4)
71conventions: new Action<EndpointBuilder>[] 87groupConventions: Array.Empty<Action<EndpointBuilder>>(), 88finallyConventions: Array.Empty<Action<EndpointBuilder>>(), 89groupFinallyConventions: Array.Empty<Action<EndpointBuilder>>(),
Infrastructure\PageActionEndpointDataSource.cs (4)
47IReadOnlyList<Action<EndpointBuilder>> conventions, 48IReadOnlyList<Action<EndpointBuilder>> groupConventions, 49IReadOnlyList<Action<EndpointBuilder>> finallyConventions, 50IReadOnlyList<Action<EndpointBuilder>> groupFinallyConventions)
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Infrastructure\PageActionEndpointDataSourceTest.cs (1)
138var groupConventions = new List<Action<EndpointBuilder>>()
Microsoft.AspNetCore.OpenApi (1)
Extensions\OpenApiEndpointConventionBuilderExtensions.cs (1)
63private static void AddAndConfigureOperationForEndpoint(EndpointBuilder endpointBuilder, Func<OpenApiOperation, OpenApiOperation>? configure = null)
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiGeneratorTests.cs (1)
1108public void Add(Action<EndpointBuilder> convention)
Microsoft.AspNetCore.RateLimiting.Tests (4)
TestEndpointBuilder.cs (4)
24public IList<Action<EndpointBuilder>> Conventions { get; } = new List<Action<EndpointBuilder>>(); 26public void Add(Action<EndpointBuilder> convention) 31public TestEndpointConventionBuilder ApplyToEndpoint(EndpointBuilder endpoint)
Microsoft.AspNetCore.Routing (51)
Builder\OpenApiRouteHandlerBuilderExtensions.cs (14)
20/// Adds the <see cref="IExcludeFromDescriptionMetadata"/> to <see cref="EndpointBuilder.Metadata"/> for all endpoints 29/// Adds the <see cref="IExcludeFromDescriptionMetadata"/> to <see cref="EndpointBuilder.Metadata"/> for all endpoints 38/// Adds an <see cref="IProducesResponseTypeMetadata"/> to <see cref="EndpointBuilder.Metadata"/> for all endpoints 59/// Adds an <see cref="IProducesResponseTypeMetadata"/> to <see cref="EndpointBuilder.Metadata"/> for all endpoints 96/// to <see cref="EndpointBuilder.Metadata"/> for all endpoints produced by <paramref name="builder"/>. 114/// to <see cref="EndpointBuilder.Metadata"/> for all endpoints produced by <paramref name="builder"/>. 134/// Adds the <see cref="ITagsMetadata"/> to <see cref="EndpointBuilder.Metadata"/> for all endpoints 149/// Adds the <see cref="ITagsMetadata"/> to <see cref="EndpointBuilder.Metadata"/> for all endpoints 164/// Adds <see cref="IAcceptsMetadata"/> to <see cref="EndpointBuilder.Metadata"/> for all endpoints 181/// Adds <see cref="IAcceptsMetadata"/> to <see cref="EndpointBuilder.Metadata"/> for all endpoints 200/// Adds <see cref="IAcceptsMetadata"/> to <see cref="EndpointBuilder.Metadata"/> for all endpoints 218/// Adds <see cref="IAcceptsMetadata"/> to <see cref="EndpointBuilder.Metadata"/> for all endpoints 239/// Adds <see cref="IEndpointDescriptionMetadata"/> to <see cref="EndpointBuilder.Metadata"/> for all endpoints 249/// Adds <see cref="IEndpointSummaryMetadata"/> to <see cref="EndpointBuilder.Metadata"/> for all endpoints
Builder\RouteHandlerBuilder.cs (8)
7/// Builds conventions that will be used for customization of MapAction <see cref="EndpointBuilder"/> instances. 12private readonly ICollection<Action<EndpointBuilder>>? _conventions; 13private readonly ICollection<Action<EndpointBuilder>>? _finallyConventions; 15internal RouteHandlerBuilder(ICollection<Action<EndpointBuilder>> conventions, ICollection<Action<EndpointBuilder>> finallyConventions) 32/// Adds the specified convention to the builder. Conventions are used to customize <see cref="EndpointBuilder"/> instances. 35public void Add(Action<EndpointBuilder> convention) 51public void Finally(Action<EndpointBuilder> finalConvention)
Builder\RoutingEndpointConventionBuilderExtensions.cs (5)
38/// Sets the <see cref="EndpointBuilder.DisplayName"/> to the provided <paramref name="displayName"/> for all 57/// Sets the <see cref="EndpointBuilder.DisplayName"/> using the provided <paramref name="func"/> for all 61/// <param name="func">A delegate that produces the display name for each <see cref="EndpointBuilder"/>.</param> 63public static TBuilder WithDisplayName<TBuilder>(this TBuilder builder, Func<EndpointBuilder, string> func) where TBuilder : IEndpointConventionBuilder 77/// Adds the provided metadata <paramref name="items"/> to <see cref="EndpointBuilder.Metadata"/> for all builders
RouteEndpointDataSource.cs (6)
124RouteEntry entry, RoutePattern? groupPrefix = null, IReadOnlyList<Action<EndpointBuilder>>? groupConventions = null, IReadOnlyList<Action<EndpointBuilder>>? groupFinallyConventions = null) 347private sealed class ThrowOnAddAfterEndpointBuiltConventionCollection : List<Action<EndpointBuilder>>, ICollection<Action<EndpointBuilder>> 353void ICollection<Action<EndpointBuilder>>.Add(Action<EndpointBuilder> convention)
RouteGroupBuilder.cs (10)
24private readonly List<Action<EndpointBuilder>> _conventions = new(); 25private readonly List<Action<EndpointBuilder>> _finallyConventions = new(); 37void IEndpointConventionBuilder.Add(Action<EndpointBuilder> convention) => _conventions.Add(convention); 38void IEndpointConventionBuilder.Finally(Action<EndpointBuilder> finalConvention) => _finallyConventions.Add(finalConvention); 51GetGroupedEndpointsWithNullablePrefix(null, Array.Empty<Action<EndpointBuilder>>(), 52Array.Empty<Action<EndpointBuilder>>(), _routeGroupBuilder._outerEndpointRouteBuilder.ServiceProvider); 59IReadOnlyList<Action<EndpointBuilder>> conventions, 60IReadOnlyList<Action<EndpointBuilder>> finallyConventions, 90IReadOnlyList<Action<EndpointBuilder>> conventions, 91IReadOnlyList<Action<EndpointBuilder>> finallyConventions,
RouteGroupContext.cs (6)
23/// via <see cref="IEndpointConventionBuilder.Add(Action{EndpointBuilder})"/>. These should be applied in order when building every <see cref="RouteEndpoint"/> 26public IReadOnlyList<Action<EndpointBuilder>> Conventions { get; init; } = Array.Empty<Action<EndpointBuilder>>(); 30/// via <see cref="IEndpointConventionBuilder.Add(Action{EndpointBuilder})"/>. These should be applied in LIFO order when building every <see cref="RouteEndpoint"/> 33public IReadOnlyList<Action<EndpointBuilder>> FinallyConventions { get; init; } = Array.Empty<Action<EndpointBuilder>>();
ShortCircuit\RouteShortCircuitEndpointRouteBuilderExtensions.cs (2)
58public void Add(Action<EndpointBuilder> convention) 63public void Finally(Action<EndpointBuilder> finalConvention)
Microsoft.AspNetCore.Routing.Tests (29)
Builder\OpenApiRouteHandlerBuilderExtensionsTest.cs (4)
19static void AssertMetadata(EndpointBuilder builder) 31static void AssertMetadata(EndpointBuilder builder) 137Action<EndpointBuilder> assert) 151public void Add(Action<EndpointBuilder> convention)
Builder\RequestDelegateEndpointRouteBuilderExtensionsTest.cs (3)
552public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder) 564public static void PopulateMetadata(ParameterInfo parameter, EndpointBuilder builder) 569public static void PopulateMetadata(MethodInfo method, EndpointBuilder builder)
Builder\RoutingEndpointConventionBuilderExtensionsTest.cs (10)
254public IList<Action<EndpointBuilder>> Conventions { get; } = new List<Action<EndpointBuilder>>(); 261public void Add(Action<EndpointBuilder> convention) 267public void Finally(Action<EndpointBuilder> finalConvention) 280internal EndpointBuilder EndpointBuilder { get; } 282private List<Action<EndpointBuilder>> _conventions; 283private List<Action<EndpointBuilder>> _finallyConventions; 285public DefaultEndpointConventionBuilder(EndpointBuilder endpointBuilder) 292public void Add(Action<EndpointBuilder> convention) 304public void Finally(Action<EndpointBuilder> finalConvention)
CompositeEndpointDataSourceTest.cs (12)
44var conventions = Array.Empty<Action<EndpointBuilder>>(); 45var finallyConventions = Array.Empty<Action<EndpointBuilder>>(); 72Conventions = Array.Empty<Action<EndpointBuilder>>(), 73FinallyConventions = Array.Empty<Action<EndpointBuilder>>(), 291var conventions = new Action<EndpointBuilder>[] 295var finallyConventions = Array.Empty<Action<EndpointBuilder>>(); 331var finallyConventions = new Action<EndpointBuilder>[] 341var conventions = Array.Empty<Action<EndpointBuilder>>(); 383var conventions = new Action<EndpointBuilder>[] 387var finallyConventions = new Action<EndpointBuilder>[] 442var finallyConventions = new Action<EndpointBuilder>[] 459var conventions = Array.Empty<Action<EndpointBuilder>>();
Microsoft.AspNetCore.SignalR (5)
HubEndpointConventionBuilder.cs (4)
7/// Builds conventions that will be used for customization of Hub <see cref="EndpointBuilder"/> instances. 19/// Adds the specified convention to the builder. Conventions are used to customize <see cref="EndpointBuilder"/> instances. 22public void Add(Action<EndpointBuilder> convention) 28public void Finally(Action<EndpointBuilder> finalConvention)
IHubEndpointConventionBuilder.cs (1)
7/// Abstraction that builds conventions that will be used for customization of Hub <see cref="EndpointBuilder"/> instances.
Microsoft.AspNetCore.StaticAssets (11)
Development\StaticAssetDevelopmentRuntimeHandler.cs (1)
30public void AttachRuntimePatching(EndpointBuilder builder)
StaticAssetEndpointDataSource.cs (2)
21private readonly List<Action<EndpointBuilder>> _conventions = []; 22private readonly List<Action<EndpointBuilder>> _finallyConventions = [];
StaticAssetEndpointFactory.cs (2)
19public Endpoint Create(StaticAssetDescriptor resource, List<Action<EndpointBuilder>> conventions, List<Action<EndpointBuilder>> finallyConventions)
StaticAssetsEndpointConventionBuilder.cs (6)
15private readonly List<Action<EndpointBuilder>> _conventions; 16private readonly List<Action<EndpointBuilder>> _finallyConventions; 18internal StaticAssetsEndpointConventionBuilder(object lck, List<StaticAssetDescriptor> descriptors, List<Action<EndpointBuilder>> conventions, List<Action<EndpointBuilder>> finallyConventions) 29public void Add(Action<EndpointBuilder> convention) 39public void Finally(Action<EndpointBuilder> convention)
RoutingSandbox (3)
Framework\FrameworkEndpointDataSource.cs (3)
13private readonly List<Action<EndpointBuilder>> _conventions; 23_conventions = new List<Action<EndpointBuilder>>(); 82public void Add(Action<EndpointBuilder> convention)