29 writes to EndpointBuilder
Microsoft.AspNetCore.Http.Extensions.Tests (28)
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>>()
2560
var options = new RequestDelegateFactoryOptions {
EndpointBuilder
= CreateEndpointBuilder(new List<object> { customMetadata }) };
2675
EndpointBuilder
= CreateEndpointBuilder(new List<object>
2697
EndpointBuilder
= CreateEndpointBuilder(new List<object>
2720
EndpointBuilder
= CreateEndpointBuilder(new List<object>
2743
EndpointBuilder
= CreateEndpointBuilder(new List<object>
2766
EndpointBuilder
= CreateEndpointBuilder(new List<object>
2787
EndpointBuilder
= CreateEndpointBuilder(new List<object>
2808
EndpointBuilder
= CreateEndpointBuilder(new List<object>
2845
EndpointBuilder
= builder,
2869
EndpointBuilder
= CreateEndpointBuilder(),
2903
EndpointBuilder
= CreateEndpointBuilder(),
2924
EndpointBuilder
= CreateEndpointBuilder(),
3051
EndpointBuilder
= CreateEndpointBuilderFromFilterFactories(new List<Func<EndpointFilterFactoryContext, EndpointFilterDelegate, EndpointFilterDelegate>>()
3078
EndpointBuilder
= new RouteEndpointBuilder(null, RoutePatternFactory.Parse("/"), order: 0),
3094
EndpointBuilder
= CreateEndpointBuilderFromFilterFactories(new List<Func<EndpointFilterFactoryContext, EndpointFilterDelegate, EndpointFilterDelegate>>()
RequestDelegateFactoryTests.EndpointFilters.cs (2)
36
EndpointBuilder
= CreateEndpointBuilderFromFilterFactories(
80
EndpointBuilder
= CreateEndpointBuilderFromFilterFactories(
RequestDelegateFactoryTests.FormMapping.cs (4)
24
EndpointBuilder
= CreateEndpointBuilder(new List<object>()
71
EndpointBuilder
= CreateEndpointBuilder(new List<object>()
118
EndpointBuilder
= CreateEndpointBuilder(new List<object>()
243
EndpointBuilder
= CreateEndpointBuilder(new List<object>()
Microsoft.AspNetCore.Routing (1)
RouteEndpointDataSource.cs (1)
280
EndpointBuilder
= builder,
16 references to EndpointBuilder
Microsoft.AspNetCore.Http.Extensions (5)
RequestDelegateFactory.cs (4)
170
/// <see cref="InferMetadata(MethodInfo, RequestDelegateFactoryOptions?)"/> would have inferred for the same <see cref="Delegate.Method"/> and populate <see cref="RequestDelegateFactoryOptions.
EndpointBuilder
"/>
222
/// <see cref="InferMetadata(MethodInfo, RequestDelegateFactoryOptions?)"/> would have inferred for the same <see cref="Delegate.Method"/> and populate <see cref="RequestDelegateFactoryOptions.
EndpointBuilder
"/>
274
var serviceProvider = options?.ServiceProvider ?? options?.
EndpointBuilder
?.ApplicationServices ?? EmptyServiceProvider.Instance;
275
var endpointBuilder = options?.
EndpointBuilder
?? new RdfEndpointBuilder(serviceProvider);
RequestDelegateMetadataResult.cs (1)
8
/// <see cref="RequestDelegateFactoryOptions.
EndpointBuilder
"/> will be automatically populated with this metadata if provided.
Microsoft.AspNetCore.Http.Extensions.Tests (3)
RequestDelegateFactoryTests.cs (3)
2888
Assert.Same(options.
EndpointBuilder
.Metadata, result.EndpointMetadata);
3083
Assert.Same(options.
EndpointBuilder
.RequestDelegate, result.RequestDelegate);
3084
Assert.Same(options.
EndpointBuilder
.Metadata, result.EndpointMetadata);
Microsoft.AspNetCore.Routing (8)
Builder\EndpointRouteBuilderExtensions.cs (3)
208
if (options.
EndpointBuilder
?.FilterFactories.Count > 0)
213
IReadOnlyList<object> metadata = options.
EndpointBuilder
?.Metadata is not null ?
214
new List<object>(options.
EndpointBuilder
.Metadata) :
RequestDelegateFilterPipelineBuilder.cs (5)
19
Debug.Assert(options.
EndpointBuilder
!= null);
21
var serviceProvider = options.ServiceProvider ?? options.
EndpointBuilder
.ApplicationServices;
28
ApplicationServices = options.
EndpointBuilder
.ApplicationServices
42
for (var i = options.
EndpointBuilder
.FilterFactories.Count - 1; i >= 0; i--)
44
var currentFilterFactory = options.
EndpointBuilder
.FilterFactories[i];