10 types derived from EndpointBuilder
Microsoft.AspNetCore.Cors.Test (1)
CorsEndpointConventionBuilderExtensionsTests.cs (1)
88
private class TestEndpointBuilder :
EndpointBuilder
Microsoft.AspNetCore.Http.Extensions (1)
RequestDelegateFactory.cs (1)
2879
private sealed class RdfEndpointBuilder :
EndpointBuilder
Microsoft.AspNetCore.Http.Extensions.Tests (1)
HttpMetricsEndpointConventionBuilderExtensionsTests.cs (1)
20
private sealed class TestEndointConventionBuilder :
EndpointBuilder
, IEndpointConventionBuilder
Microsoft.AspNetCore.Http.Results.Tests (1)
ResultsOfTHelperTests.cs (1)
91
private class TestEndpointBuilder :
EndpointBuilder
Microsoft.AspNetCore.HttpLogging.Tests (1)
HttpLoggingEndpointConventionBuilderTests.cs (1)
54
internal class TestEndpointBuilder :
EndpointBuilder
Microsoft.AspNetCore.Mvc.Core (1)
Routing\ActionEndpointFactory.cs (1)
547
private sealed class InertEndpointBuilder :
EndpointBuilder
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiGeneratorTests.cs (1)
1106
private class TestEndpointConventionBuilder :
EndpointBuilder
, IEndpointConventionBuilder
Microsoft.AspNetCore.RateLimiting.Tests (1)
TestEndpointBuilder.cs (1)
14
internal class TestEndpointBuilder :
EndpointBuilder
Microsoft.AspNetCore.Routing (1)
RouteEndpointBuilder.cs (1)
17
public sealed class RouteEndpointBuilder :
EndpointBuilder
Microsoft.AspNetCore.Routing.Tests (1)
Builder\OpenApiRouteHandlerBuilderExtensionsTest.cs (1)
156
private sealed class TestEndointConventionBuilder :
EndpointBuilder
, IEndpointConventionBuilder
405 references to EndpointBuilder
Microsoft.AspNetCore.Authorization.Test (3)
AuthorizationEndpointConventionBuilderExtensionsTests.cs (3)
253
public IList<Action<
EndpointBuilder
>> Conventions { get; } = new List<Action<
EndpointBuilder
>>();
256
public void Add(Action<
EndpointBuilder
> convention)
Microsoft.AspNetCore.Components.Endpoints (19)
Builder\OpaqueRedirection.cs (1)
51
public static
EndpointBuilder
GetBlazorOpaqueRedirectionEndpoint()
Builder\RazorComponentEndpointDataSource.cs (6)
24
private readonly List<Action<
EndpointBuilder
>> _conventions = [];
25
private readonly List<Action<
EndpointBuilder
>> _finallyConventions = [];
42
internal List<Action<
EndpointBuilder
>> Conventions => _conventions;
182
List<
EndpointBuilder
> blazorWebEndpoints = [
186
foreach (
var
endpoint in blazorWebEndpoints)
202
private static IEnumerable<
EndpointBuilder
> GetBlazorWebJsEndpoint(IEndpointRouteBuilder endpoints)
Builder\RazorComponentEndpointFactory.cs (2)
26
IReadOnlyList<Action<
EndpointBuilder
>> conventions,
27
IReadOnlyList<Action<
EndpointBuilder
>> finallyConventions,
Builder\RazorComponentsEndpointConventionBuilder.cs (7)
13
/// Builds conventions that will be used for customization of <see cref="
EndpointBuilder
"/> instances.
19
private readonly List<Action<
EndpointBuilder
>> _conventions;
20
private readonly List<Action<
EndpointBuilder
>> _finallyConventions;
27
List<Action<
EndpointBuilder
>> conventions,
28
List<Action<
EndpointBuilder
>> finallyConventions)
52
public void Add(Action<
EndpointBuilder
> convention)
65
public void Finally(Action<
EndpointBuilder
> finallyConvention)
Builder\RenderModeEndpointProvider.cs (2)
39
List<Action<
EndpointBuilder
>> conventions,
40
List<Action<
EndpointBuilder
>> finallyConventions)
Builder\ResourceCollectionConvention.cs (1)
46
public void ApplyConvention(
EndpointBuilder
eb)
Microsoft.AspNetCore.Components.Endpoints.Tests (10)
RazorComponentEndpointFactoryTest.cs (10)
19
var conventions = new List<Action<
EndpointBuilder
>>();
20
var finallyConventions = new List<Action<
EndpointBuilder
>>();
59
var conventions = new List<Action<
EndpointBuilder
>>() {
63
var finallyConventions = new List<Action<
EndpointBuilder
>>();
85
var conventions = new List<Action<
EndpointBuilder
>>();
87
var finallyConventions = new List<Action<
EndpointBuilder
>>()
113
var conventions = new List<Action<
EndpointBuilder
>>();
115
var finallyConventions = new List<Action<
EndpointBuilder
>>()
142
var conventions = new List<Action<
EndpointBuilder
>>()
147
var 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.
32
public void Add(Action<
EndpointBuilder
> convention)
41
public void Finally(Action<
EndpointBuilder
> finalConvention)
Microsoft.AspNetCore.Cors.Test (3)
CorsEndpointConventionBuilderExtensionsTests.cs (3)
98
public IList<Action<
EndpointBuilder
>> Conventions { get; } = new List<Action<
EndpointBuilder
>>();
101
public 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.
18
void Add(Action<
EndpointBuilder
> convention);
22
/// via <see cref="Add(Action{
EndpointBuilder
})"/>
25
void 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>
25
static 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>
25
static 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.
22
public void Add(Action<
EndpointBuilder
> convention)
28
public void Finally(Action<
EndpointBuilder
> finalConvention)
ConnectionEndpointRouteBuilderExtensions.cs (2)
142
public void Add(Action<
EndpointBuilder
> convention)
150
public void Finally(Action<
EndpointBuilder
> finalConvention)
Microsoft.AspNetCore.Http.Extensions (14)
RequestDelegateFactory.cs (3)
275
var
endpointBuilder = options?.EndpointBuilder ?? new RdfEndpointBuilder(serviceProvider);
296
private static RequestDelegateResult CreateRequestDelegateResult(RequestDelegate finalRequestDelegate,
EndpointBuilder
endpointBuilder)
1025
private static void PopulateBuiltInResponseTypeMetadata(Type returnType,
EndpointBuilder
builder)
RequestDelegateFactoryContext.cs (1)
21
public 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>
50
public
EndpointBuilder
? EndpointBuilder { get; init; }
src\Shared\EndpointMetadataPopulator.cs (3)
21
public static void PopulateMetadata(MethodInfo methodInfo,
EndpointBuilder
builder, IEnumerable<ParameterInfo>? parameters = null)
65
private static void PopulateMetadataForParameter<T>(ParameterInfo parameter,
EndpointBuilder
builder)
71
private static void PopulateMetadataForEndpoint<T>(MethodInfo method,
EndpointBuilder
builder)
Microsoft.AspNetCore.Http.Extensions.Tests (35)
HttpMetricsEndpointConventionBuilderExtensionsTests.cs (1)
22
public void Add(Action<
EndpointBuilder
> convention)
RequestDelegateFactoryTests.cs (18)
3272
private
EndpointBuilder
CreateEndpointBuilder(IEnumerable<object>? metadata = null)
3282
private
EndpointBuilder
CreateEndpointBuilderFromFilterFactories(IEnumerable<Func<EndpointFilterFactoryContext, EndpointFilterDelegate, EndpointFilterDelegate>> filterFactories)
3293
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
3309
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
3328
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
3338
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
3348
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
3359
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
3368
public static void PopulateMetadata(ParameterInfo parameter,
EndpointBuilder
builder)
3386
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
3404
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
3424
public static void PopulateMetadata(ParameterInfo parameter,
EndpointBuilder
builder)
3429
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
3449
public static void PopulateMetadata(ParameterInfo parameter,
EndpointBuilder
builder)
3454
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
3472
public static void PopulateMetadata(ParameterInfo parameter,
EndpointBuilder
builder)
3477
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
3485
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
RequestDelegateGenerator\SharedTypes.cs (16)
32
public static void PopulateMetadata(ParameterInfo parameter,
EndpointBuilder
builder)
40
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
559
public static void PopulateMetadata(ParameterInfo parameter,
EndpointBuilder
builder)
564
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
594
public static void PopulateMetadata(ParameterInfo parameter,
EndpointBuilder
builder)
599
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
607
public static void PopulateMetadata(ParameterInfo parameter,
EndpointBuilder
builder)
612
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
619
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
629
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
642
public static void PopulateMetadata(ParameterInfo parameter,
EndpointBuilder
builder)
660
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
683
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
925
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
945
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
958
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
Microsoft.AspNetCore.Http.Microbenchmarks (16)
src\Http\Http.Extensions\test\RequestDelegateGenerator\SharedTypes.cs (16)
32
public static void PopulateMetadata(ParameterInfo parameter,
EndpointBuilder
builder)
40
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
559
public static void PopulateMetadata(ParameterInfo parameter,
EndpointBuilder
builder)
564
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
594
public static void PopulateMetadata(ParameterInfo parameter,
EndpointBuilder
builder)
599
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
607
public static void PopulateMetadata(ParameterInfo parameter,
EndpointBuilder
builder)
612
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
619
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
629
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
642
public static void PopulateMetadata(ParameterInfo parameter,
EndpointBuilder
builder)
660
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
683
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
925
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
945
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
958
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
Microsoft.AspNetCore.Http.Results (29)
Accepted.cs (1)
79
static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
AcceptedAtRoute.cs (1)
106
static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
AcceptedAtRouteOfT.cs (1)
120
static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
AcceptedOfT.cs (1)
98
static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
BadRequest.cs (1)
49
static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
BadRequestOfT.cs (1)
63
static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
Conflict.cs (1)
49
static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
ConflictOfT.cs (1)
63
static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
Created.cs (1)
79
static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
CreatedAtRoute.cs (1)
106
static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
CreatedAtRouteOfT.cs (1)
123
static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
CreatedOfT.cs (1)
97
static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
InternalServerError.cs (1)
49
static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
InternalServerErrorOfT.cs (1)
63
static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
NoContent.cs (1)
49
static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
NotFound.cs (1)
48
static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
NotFoundOfT.cs (1)
62
static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
Ok.cs (1)
48
static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
OkOfT.cs (1)
62
static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
ResultsOfT.Generated.cs (5)
65
static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
135
static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
214
static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
302
static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
399
static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
ResultsOfTHelper.cs (2)
20
public static void PopulateMetadataIfTargetIsIEndpointMetadataProvider<[DynamicallyAccessedMembers(RequireMethods)] TTarget>(MethodInfo method,
EndpointBuilder
builder)
59
private static void PopulateMetadata<TTarget>(MethodInfo method,
EndpointBuilder
builder) where TTarget : IEndpointMetadataProvider
UnprocessableEntity.cs (1)
49
static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
UnprocessableEntityOfT.cs (1)
63
static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
ValidationProblem.cs (1)
74
static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
Microsoft.AspNetCore.Http.Results.Tests (35)
AcceptedAtRouteOfTResultTests.cs (1)
207
private static void PopulateMetadata<TResult>(MethodInfo method,
EndpointBuilder
builder)
AcceptedAtRouteResultTests.cs (1)
119
private static void PopulateMetadata<TResult>(MethodInfo method,
EndpointBuilder
builder)
AcceptedOfTResultTests.cs (1)
131
private static void PopulateMetadata<TResult>(MethodInfo method,
EndpointBuilder
builder)
AcceptedResultTests.cs (1)
76
private static void PopulateMetadata<TResult>(MethodInfo method,
EndpointBuilder
builder)
BadRequestOfTResultTests.cs (1)
174
private static void PopulateMetadata<TResult>(MethodInfo method,
EndpointBuilder
builder)
BadRequestResultTests.cs (1)
89
private static void PopulateMetadata<TResult>(MethodInfo method,
EndpointBuilder
builder)
ConflictOfTResultTests.cs (1)
152
private static void PopulateMetadata<TResult>(MethodInfo method,
EndpointBuilder
builder)
ConflictResultTests.cs (1)
90
private static void PopulateMetadata<TResult>(MethodInfo method,
EndpointBuilder
builder)
CreatedAtRouteOfTResultTests.cs (1)
174
private static void PopulateMetadata<TResult>(MethodInfo method,
EndpointBuilder
builder)
CreatedAtRouteResultTests.cs (1)
122
private static void PopulateMetadata<TResult>(MethodInfo method,
EndpointBuilder
builder)
CreatedOfTResultTests.cs (1)
171
private static void PopulateMetadata<TResult>(MethodInfo method,
EndpointBuilder
builder)
CreatedResultTests.cs (1)
110
private static void PopulateMetadata<TResult>(MethodInfo method,
EndpointBuilder
builder)
InternalServerErrorOfTResultTests.cs (1)
174
private static void PopulateMetadata<TResult>(MethodInfo method,
EndpointBuilder
builder)
InternalServerErrorResultTests.cs (1)
89
private static void PopulateMetadata<TResult>(MethodInfo method,
EndpointBuilder
builder)
NoContentResultTests.cs (1)
86
private static void PopulateMetadata<TResult>(MethodInfo method,
EndpointBuilder
builder)
NotFoundOfTResultTests.cs (1)
134
private static void PopulateMetadata<TResult>(MethodInfo method,
EndpointBuilder
builder)
NotFoundResultTests.cs (1)
85
private static void PopulateMetadata<TResult>(MethodInfo method,
EndpointBuilder
builder)
OkOfTResultTests.cs (1)
151
private static void PopulateMetadata<TResult>(MethodInfo method,
EndpointBuilder
builder)
OkResultTests.cs (1)
88
private static void PopulateMetadata<TResult>(MethodInfo method,
EndpointBuilder
builder)
ResultsOfTHelperTests.cs (5)
101
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
109
static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
117
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
122
static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
130
static void IEndpointMetadataProvider.PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
ResultsOfTTests.cs (1)
90
private static void PopulateMetadata<TTarget>(MethodInfo method,
EndpointBuilder
builder) where TTarget : IEndpointMetadataProvider
ResultsOfTTests.Generated.cs (7)
1865
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
1879
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
1893
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
1907
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
1921
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
1935
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
1948
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
UnprocessableEntityOfTResultTests.cs (1)
151
private static void PopulateMetadata<TResult>(MethodInfo method,
EndpointBuilder
builder)
UnprocessableEntityResultTests.cs (1)
89
private static void PopulateMetadata<TResult>(MethodInfo method,
EndpointBuilder
builder)
ValidationProblemResultTests.cs (1)
173
private static void PopulateMetadata<TResult>(MethodInfo method,
EndpointBuilder
builder)
Microsoft.AspNetCore.HttpLogging.Tests (4)
HttpLoggingEndpointConventionBuilderTests.cs (4)
64
public IList<Action<
EndpointBuilder
>> Conventions { get; } = new List<Action<
EndpointBuilder
>>();
66
public void Add(Action<
EndpointBuilder
> convention)
71
public TestEndpointConventionBuilder ApplyToEndpoint(
EndpointBuilder
endpoint)
Microsoft.AspNetCore.Identity (2)
IdentityApiEndpointRouteBuilderExtensions.cs (2)
472
public void Add(Action<
EndpointBuilder
> convention) => InnerAsConventionBuilder.Add(convention);
473
public 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.
16
private readonly List<Action<
EndpointBuilder
>> _conventions;
17
private readonly List<Action<
EndpointBuilder
>> _finallyConventions;
19
internal ControllerActionEndpointConventionBuilder(object @lock, List<Action<
EndpointBuilder
>> conventions, List<Action<
EndpointBuilder
>> finallyConventions)
29
/// Adds the specified convention to the builder. Conventions are used to customize <see cref="
EndpointBuilder
"/> instances.
32
public void Add(Action<
EndpointBuilder
> convention)
45
public void Finally(Action<
EndpointBuilder
> finalConvention)
Routing\ActionEndpointDataSourceBase.cs (10)
25
protected readonly List<Action<
EndpointBuilder
>> Conventions;
26
protected readonly List<Action<
EndpointBuilder
>> FinallyConventions;
37
Conventions = new List<Action<
EndpointBuilder
>>();
38
FinallyConventions = new List<Action<
EndpointBuilder
>>();
67
IReadOnlyList<Action<
EndpointBuilder
>> conventions,
68
IReadOnlyList<Action<
EndpointBuilder
>> groupConventions,
69
IReadOnlyList<Action<
EndpointBuilder
>> finallyConventions,
70
IReadOnlyList<Action<
EndpointBuilder
>> groupFinallyConventions);
124
groupConventions: Array.Empty<Action<
EndpointBuilder
>>(),
126
groupFinallyConventions: Array.Empty<Action<
EndpointBuilder
>>());
Routing\ActionEndpointFactory.cs (19)
43
IReadOnlyList<Action<
EndpointBuilder
>> conventions,
44
IReadOnlyList<Action<
EndpointBuilder
>> groupConventions,
45
IReadOnlyList<Action<
EndpointBuilder
>> finallyConventions,
46
IReadOnlyList<Action<
EndpointBuilder
>> groupFinallyConventions,
76
perRouteConventions: Array.Empty<Action<
EndpointBuilder
>>(),
79
perRouteFinallyConventions: Array.Empty<Action<
EndpointBuilder
>>());
166
perRouteConventions: Array.Empty<Action<
EndpointBuilder
>>(),
169
perRouteFinallyConventions: Array.Empty<Action<
EndpointBuilder
>>());
179
IReadOnlyList<Action<
EndpointBuilder
>> groupConventions,
180
IReadOnlyList<Action<
EndpointBuilder
>> conventions,
181
IReadOnlyList<Action<
EndpointBuilder
>> groupFinallyConventions,
182
IReadOnlyList<Action<
EndpointBuilder
>> finallyConventions,
329
EndpointBuilder
builder,
336
IReadOnlyList<Action<
EndpointBuilder
>> groupConventions,
337
IReadOnlyList<Action<
EndpointBuilder
>> conventions,
338
IReadOnlyList<Action<
EndpointBuilder
>> perRouteConventions,
339
IReadOnlyList<Action<
EndpointBuilder
>> groupFinallyConventions,
340
IReadOnlyList<Action<
EndpointBuilder
>> finallyConventions,
341
IReadOnlyList<Action<
EndpointBuilder
>> perRouteFinallyConventions)
Routing\ControllerActionEndpointDataSource.cs (6)
58
var conventions = new List<Action<
EndpointBuilder
>>();
59
var finallyConventions = new List<Action<
EndpointBuilder
>>();
68
IReadOnlyList<Action<
EndpointBuilder
>> conventions,
69
IReadOnlyList<Action<
EndpointBuilder
>> groupConventions,
70
IReadOnlyList<Action<
EndpointBuilder
>> finallyConventions,
71
IReadOnlyList<Action<
EndpointBuilder
>> groupFinallyConventions)
Routing\ConventionalRouteEntry.cs (4)
17
public readonly IReadOnlyList<Action<
EndpointBuilder
>> Conventions;
18
public readonly IReadOnlyList<Action<
EndpointBuilder
>> FinallyConventions;
27
List<Action<
EndpointBuilder
>> conventions,
28
List<Action<
EndpointBuilder
>> finallyConventions)
src\Shared\EndpointMetadataPopulator.cs (3)
21
public static void PopulateMetadata(MethodInfo methodInfo,
EndpointBuilder
builder, IEnumerable<ParameterInfo>? parameters = null)
65
private static void PopulateMetadataForParameter<T>(ParameterInfo parameter,
EndpointBuilder
builder)
71
private static void PopulateMetadataForEndpoint<T>(MethodInfo method,
EndpointBuilder
builder)
Microsoft.AspNetCore.Mvc.Core.Test (37)
ApplicationModels\EndpointMetadataProviderTest.cs (14)
105
Conventions = new Action<
EndpointBuilder
>[]
109
FinallyConventions = new Action<
EndpointBuilder
>[]
148
Conventions = new Action<
EndpointBuilder
>[]
169
Conventions = new Action<
EndpointBuilder
>[]
190
Conventions = new Action<
EndpointBuilder
>[]
394
public static void PopulateMetadata(ParameterInfo parameter,
EndpointBuilder
builder)
399
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
407
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
417
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
426
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
439
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
456
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
476
public static void PopulateMetadata(ParameterInfo parameter,
EndpointBuilder
builder)
494
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
Routing\ActionEndpointFactoryTest.cs (22)
278
conventions: Array.Empty<Action<
EndpointBuilder
>>(),
279
groupConventions: Array.Empty<Action<
EndpointBuilder
>>(),
280
finallyConventions: Array.Empty<Action<
EndpointBuilder
>>(),
281
groupFinallyConventions: Array.Empty<Action<
EndpointBuilder
>>(),
384
conventions: Array.Empty<Action<
EndpointBuilder
>>(),
385
groupConventions: Array.Empty<Action<
EndpointBuilder
>>(),
386
finallyConventions: Array.Empty<Action<
EndpointBuilder
>>(),
387
groupFinallyConventions: Array.Empty<Action<
EndpointBuilder
>>(),
394
return CreateConventionalRoutedEndpoint(action, new ConventionalRouteEntry(routeName: null, template, null, null, null, order: 0, new List<Action<
EndpointBuilder
>>(), new List<Action<
EndpointBuilder
>>()));
407
conventions: Array.Empty<Action<
EndpointBuilder
>>(),
408
groupConventions: Array.Empty<Action<
EndpointBuilder
>>(),
409
finallyConventions: Array.Empty<Action<
EndpointBuilder
>>(),
410
groupFinallyConventions: Array.Empty<Action<
EndpointBuilder
>>(),
433
conventions: Array.Empty<Action<
EndpointBuilder
>>(),
434
groupConventions: Array.Empty<Action<
EndpointBuilder
>>(),
435
finallyConventions: Array.Empty<Action<
EndpointBuilder
>>(),
436
groupFinallyConventions: Array.Empty<Action<
EndpointBuilder
>>(),
448
List<Action<
EndpointBuilder
>> conventions = null,
449
List<Action<
EndpointBuilder
>> finallyConventions = null)
451
conventions ??= new List<Action<
EndpointBuilder
>>();
452
finallyConventions ??= new List<Action<
EndpointBuilder
>>();
Routing\ControllerActionEndpointDataSourceTest.cs (1)
420
var 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.
16
private readonly List<Action<
EndpointBuilder
>> _conventions;
17
private readonly List<Action<
EndpointBuilder
>> _finallyConventions;
19
internal PageActionEndpointConventionBuilder(object @lock, List<Action<
EndpointBuilder
>> conventions, List<Action<
EndpointBuilder
>> finallyConventions)
29
/// Adds the specified convention to the builder. Conventions are used to customize <see cref="
EndpointBuilder
"/> instances.
32
public void Add(Action<
EndpointBuilder
> convention)
45
public void Finally(Action<
EndpointBuilder
> finalConvention)
Infrastructure\DefaultPageLoader.cs (4)
71
conventions: new Action<
EndpointBuilder
>[]
87
groupConventions: Array.Empty<Action<
EndpointBuilder
>>(),
88
finallyConventions: Array.Empty<Action<
EndpointBuilder
>>(),
89
groupFinallyConventions: Array.Empty<Action<
EndpointBuilder
>>(),
Infrastructure\PageActionEndpointDataSource.cs (4)
47
IReadOnlyList<Action<
EndpointBuilder
>> conventions,
48
IReadOnlyList<Action<
EndpointBuilder
>> groupConventions,
49
IReadOnlyList<Action<
EndpointBuilder
>> finallyConventions,
50
IReadOnlyList<Action<
EndpointBuilder
>> groupFinallyConventions)
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Infrastructure\PageActionEndpointDataSourceTest.cs (1)
138
var groupConventions = new List<Action<
EndpointBuilder
>>()
Microsoft.AspNetCore.OpenApi (1)
Extensions\OpenApiEndpointConventionBuilderExtensions.cs (1)
63
private static void AddAndConfigureOperationForEndpoint(
EndpointBuilder
endpointBuilder, Func<OpenApiOperation, OpenApiOperation>? configure = null)
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiGeneratorTests.cs (1)
1108
public void Add(Action<
EndpointBuilder
> convention)
Microsoft.AspNetCore.RateLimiting.Tests (4)
TestEndpointBuilder.cs (4)
24
public IList<Action<
EndpointBuilder
>> Conventions { get; } = new List<Action<
EndpointBuilder
>>();
26
public void Add(Action<
EndpointBuilder
> convention)
31
public TestEndpointConventionBuilder ApplyToEndpoint(
EndpointBuilder
endpoint)
Microsoft.AspNetCore.Routing (53)
Builder\OpenApiRouteHandlerBuilderExtensions.cs (16)
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"/>.
135
/// to <see cref="
EndpointBuilder
.Metadata"/> for all endpoints produced by <paramref name="builder"/>.
156
/// to <see cref="
EndpointBuilder
.Metadata"/> for all endpoints produced by <paramref name="builder"/>.
179
/// Adds the <see cref="ITagsMetadata"/> to <see cref="
EndpointBuilder
.Metadata"/> for all endpoints
194
/// Adds the <see cref="ITagsMetadata"/> to <see cref="
EndpointBuilder
.Metadata"/> for all endpoints
209
/// Adds <see cref="IAcceptsMetadata"/> to <see cref="
EndpointBuilder
.Metadata"/> for all endpoints
226
/// Adds <see cref="IAcceptsMetadata"/> to <see cref="
EndpointBuilder
.Metadata"/> for all endpoints
245
/// Adds <see cref="IAcceptsMetadata"/> to <see cref="
EndpointBuilder
.Metadata"/> for all endpoints
263
/// Adds <see cref="IAcceptsMetadata"/> to <see cref="
EndpointBuilder
.Metadata"/> for all endpoints
284
/// Adds <see cref="IEndpointDescriptionMetadata"/> to <see cref="
EndpointBuilder
.Metadata"/> for all endpoints
294
/// 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.
12
private readonly ICollection<Action<
EndpointBuilder
>>? _conventions;
13
private readonly ICollection<Action<
EndpointBuilder
>>? _finallyConventions;
15
internal 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.
35
public void Add(Action<
EndpointBuilder
> convention)
51
public 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>
63
public 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)
124
RouteEntry entry, RoutePattern? groupPrefix = null, IReadOnlyList<Action<
EndpointBuilder
>>? groupConventions = null, IReadOnlyList<Action<
EndpointBuilder
>>? groupFinallyConventions = null)
347
private sealed class ThrowOnAddAfterEndpointBuiltConventionCollection : List<Action<
EndpointBuilder
>>, ICollection<Action<
EndpointBuilder
>>
353
void ICollection<Action<
EndpointBuilder
>>.Add(Action<
EndpointBuilder
> convention)
RouteGroupBuilder.cs (10)
24
private readonly List<Action<
EndpointBuilder
>> _conventions = new();
25
private readonly List<Action<
EndpointBuilder
>> _finallyConventions = new();
37
void IEndpointConventionBuilder.Add(Action<
EndpointBuilder
> convention) => _conventions.Add(convention);
38
void IEndpointConventionBuilder.Finally(Action<
EndpointBuilder
> finalConvention) => _finallyConventions.Add(finalConvention);
51
GetGroupedEndpointsWithNullablePrefix(null, Array.Empty<Action<
EndpointBuilder
>>(),
52
Array.Empty<Action<
EndpointBuilder
>>(), _routeGroupBuilder._outerEndpointRouteBuilder.ServiceProvider);
59
IReadOnlyList<Action<
EndpointBuilder
>> conventions,
60
IReadOnlyList<Action<
EndpointBuilder
>> finallyConventions,
90
IReadOnlyList<Action<
EndpointBuilder
>> conventions,
91
IReadOnlyList<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"/>
26
public 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"/>
33
public IReadOnlyList<Action<
EndpointBuilder
>> FinallyConventions { get; init; } = Array.Empty<Action<
EndpointBuilder
>>();
ShortCircuit\RouteShortCircuitEndpointRouteBuilderExtensions.cs (2)
58
public void Add(Action<
EndpointBuilder
> convention)
63
public void Finally(Action<
EndpointBuilder
> finalConvention)
Microsoft.AspNetCore.Routing.Tests (31)
Builder\OpenApiRouteHandlerBuilderExtensionsTest.cs (6)
19
static void AssertMetadata(
EndpointBuilder
builder)
31
static void AssertMetadata(
EndpointBuilder
builder)
77
static void AssertMetadata(
EndpointBuilder
builder)
95
static void AssertMetadata(
EndpointBuilder
builder)
144
Action<
EndpointBuilder
> assert)
158
public void Add(Action<
EndpointBuilder
> convention)
Builder\RequestDelegateEndpointRouteBuilderExtensionsTest.cs (3)
553
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
565
public static void PopulateMetadata(ParameterInfo parameter,
EndpointBuilder
builder)
570
public static void PopulateMetadata(MethodInfo method,
EndpointBuilder
builder)
Builder\RoutingEndpointConventionBuilderExtensionsTest.cs (10)
254
public IList<Action<
EndpointBuilder
>> Conventions { get; } = new List<Action<
EndpointBuilder
>>();
261
public void Add(Action<
EndpointBuilder
> convention)
267
public void Finally(Action<
EndpointBuilder
> finalConvention)
280
internal
EndpointBuilder
EndpointBuilder { get; }
282
private List<Action<
EndpointBuilder
>> _conventions;
283
private List<Action<
EndpointBuilder
>> _finallyConventions;
285
public DefaultEndpointConventionBuilder(
EndpointBuilder
endpointBuilder)
292
public void Add(Action<
EndpointBuilder
> convention)
304
public void Finally(Action<
EndpointBuilder
> finalConvention)
CompositeEndpointDataSourceTest.cs (12)
44
var conventions = Array.Empty<Action<
EndpointBuilder
>>();
45
var finallyConventions = Array.Empty<Action<
EndpointBuilder
>>();
72
Conventions = Array.Empty<Action<
EndpointBuilder
>>(),
73
FinallyConventions = Array.Empty<Action<
EndpointBuilder
>>(),
291
var conventions = new Action<
EndpointBuilder
>[]
295
var finallyConventions = Array.Empty<Action<
EndpointBuilder
>>();
331
var finallyConventions = new Action<
EndpointBuilder
>[]
341
var conventions = Array.Empty<Action<
EndpointBuilder
>>();
383
var conventions = new Action<
EndpointBuilder
>[]
387
var finallyConventions = new Action<
EndpointBuilder
>[]
442
var finallyConventions = new Action<
EndpointBuilder
>[]
459
var 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.
22
public void Add(Action<
EndpointBuilder
> convention)
28
public 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)
29
public void AttachRuntimePatching(
EndpointBuilder
builder)
StaticAssetEndpointDataSource.cs (2)
21
private readonly List<Action<
EndpointBuilder
>> _conventions = [];
22
private readonly List<Action<
EndpointBuilder
>> _finallyConventions = [];
StaticAssetEndpointFactory.cs (2)
19
public Endpoint Create(StaticAssetDescriptor resource, List<Action<
EndpointBuilder
>> conventions, List<Action<
EndpointBuilder
>> finallyConventions)
StaticAssetsEndpointConventionBuilder.cs (6)
16
private readonly List<Action<
EndpointBuilder
>> _conventions;
17
private readonly List<Action<
EndpointBuilder
>> _finallyConventions;
19
internal StaticAssetsEndpointConventionBuilder(object lck, bool isBuildManifest, List<StaticAssetDescriptor> descriptors, List<Action<
EndpointBuilder
>> conventions, List<Action<
EndpointBuilder
>> finallyConventions)
33
public void Add(Action<
EndpointBuilder
> convention)
43
public void Finally(Action<
EndpointBuilder
> convention)
RoutingSandbox (3)
Framework\FrameworkEndpointDataSource.cs (3)
13
private readonly List<Action<
EndpointBuilder
>> _conventions;
23
_conventions = new List<Action<
EndpointBuilder
>>();
82
public void Add(Action<
EndpointBuilder
> convention)