43 references to EndpointFilterDelegate
Microsoft.AspNetCore.Http.Abstractions (5)
Extensions\EndpointBuilder.cs (4)
13
private List<Func<EndpointFilterFactoryContext,
EndpointFilterDelegate
,
EndpointFilterDelegate
>>? _filterFactories;
18
public IList<Func<EndpointFilterFactoryContext,
EndpointFilterDelegate
,
EndpointFilterDelegate
>> FilterFactories => _filterFactories ??= new();
IEndpointFilter.cs (1)
19
ValueTask<object?> InvokeAsync(EndpointFilterInvocationContext context,
EndpointFilterDelegate
next);
Microsoft.AspNetCore.Http.Extensions (5)
RequestDelegateFactory.cs (5)
345
EndpointFilterDelegate
? filterPipeline = null;
412
private static
EndpointFilterDelegate
? CreateFilterPipeline(MethodInfo methodInfo, Expression? targetExpression, RequestDelegateFactoryContext factoryContext, Expression<Func<HttpContext, object?>>? targetFactory)
472
var
filteredInvocation = Expression.Lambda<
EndpointFilterDelegate
>(
484
var
initialFilteredInvocation = filteredInvocation;
Microsoft.AspNetCore.Http.Extensions.Tests (22)
RequestDelegateFactoryTests.cs (22)
108
EndpointBuilder = CreateEndpointBuilderFromFilterFactories(new List<Func<EndpointFilterFactoryContext,
EndpointFilterDelegate
,
EndpointFilterDelegate
>>()
2168
EndpointBuilder = CreateEndpointBuilderFromFilterFactories(new List<Func<EndpointFilterFactoryContext,
EndpointFilterDelegate
,
EndpointFilterDelegate
>>()
2211
EndpointBuilder = CreateEndpointBuilderFromFilterFactories(new List<Func<EndpointFilterFactoryContext,
EndpointFilterDelegate
,
EndpointFilterDelegate
>>()
2283
EndpointBuilder = CreateEndpointBuilderFromFilterFactories(new List<Func<EndpointFilterFactoryContext,
EndpointFilterDelegate
,
EndpointFilterDelegate
>>()
2378
EndpointBuilder = CreateEndpointBuilderFromFilterFactories(new List<Func<EndpointFilterFactoryContext,
EndpointFilterDelegate
,
EndpointFilterDelegate
>>()
2412
EndpointBuilder = CreateEndpointBuilderFromFilterFactories(new List<Func<EndpointFilterFactoryContext,
EndpointFilterDelegate
,
EndpointFilterDelegate
>>()
2497
EndpointBuilder = CreateEndpointBuilderFromFilterFactories(new List<Func<EndpointFilterFactoryContext,
EndpointFilterDelegate
,
EndpointFilterDelegate
>>()
3051
EndpointBuilder = CreateEndpointBuilderFromFilterFactories(new List<Func<EndpointFilterFactoryContext,
EndpointFilterDelegate
,
EndpointFilterDelegate
>>()
3094
EndpointBuilder = CreateEndpointBuilderFromFilterFactories(new List<Func<EndpointFilterFactoryContext,
EndpointFilterDelegate
,
EndpointFilterDelegate
>>()
3282
private EndpointBuilder CreateEndpointBuilderFromFilterFactories(IEnumerable<Func<EndpointFilterFactoryContext,
EndpointFilterDelegate
,
EndpointFilterDelegate
>> filterFactories)
3285
((List<Func<EndpointFilterFactoryContext,
EndpointFilterDelegate
,
EndpointFilterDelegate
>>)builder.FilterFactories).AddRange(filterFactories);
Microsoft.AspNetCore.Mvc.Core (3)
Controllers\ControllerActionDescriptor.cs (1)
40
internal
EndpointFilterDelegate
? FilterDelegate { get; set; }
Routing\ActionEndpointFactory.cs (2)
460
EndpointFilterDelegate
del = static invocationContext =>
473
var
initialFilteredInvocation = del;
Microsoft.AspNetCore.Routing (5)
Builder\EndpointFilterExtensions.cs (3)
92
public static TBuilder AddEndpointFilter<TBuilder>(this TBuilder builder, Func<EndpointFilterInvocationContext,
EndpointFilterDelegate
, ValueTask<object?>> routeHandlerFilter)
104
public static TBuilder AddEndpointFilterFactory<TBuilder>(this TBuilder builder, Func<EndpointFilterFactoryContext,
EndpointFilterDelegate
,
EndpointFilterDelegate
> filterFactory)
RequestDelegateFilterPipelineBuilder.cs (2)
32
EndpointFilterDelegate
filteredInvocation = async (EndpointFilterInvocationContext context) =>
41
var
initialFilteredInvocation = filteredInvocation;
Microsoft.AspNetCore.Routing.Tests (3)
Builder\RequestDelegateEndpointRouteBuilderExtensionsTest.cs (1)
300
public async ValueTask<object?> InvokeAsync(EndpointFilterInvocationContext context,
EndpointFilterDelegate
next)
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (2)
1082
public async ValueTask<object?> InvokeAsync(EndpointFilterInvocationContext context,
EndpointFilterDelegate
next)
1092
public async ValueTask<object?> InvokeAsync(EndpointFilterInvocationContext context,
EndpointFilterDelegate
next)