2 implementations of IRequestDelegateFactory
Microsoft.AspNetCore.Mvc.Core (1)
Routing\ControllerRequestDelegateFactory.cs (1)
17
internal sealed class ControllerRequestDelegateFactory :
IRequestDelegateFactory
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\PageRequestDelegateFactory.cs (1)
18
internal sealed class PageRequestDelegateFactory :
IRequestDelegateFactory
18 references to IRequestDelegateFactory
Microsoft.AspNetCore.Mvc.Core (4)
DependencyInjection\MvcCoreServiceCollectionExtensions.cs (1)
264
services.TryAddEnumerable(ServiceDescriptor.Singleton<
IRequestDelegateFactory
, ControllerRequestDelegateFactory>());
Routing\ActionEndpointFactory.cs (3)
23
private readonly
IRequestDelegateFactory
[] _requestDelegateFactories;
27
IEnumerable<
IRequestDelegateFactory
> requestDelegateFactories,
502
foreach (
var
factory in _requestDelegateFactories)
Microsoft.AspNetCore.Mvc.Core.Test (5)
ApplicationModels\EndpointMetadataProviderTest.cs (1)
275
var endpointFactory = new ActionEndpointFactory(serviceProvider.GetRequiredService<RoutePatternTransformer>(), Enumerable.Empty<
IRequestDelegateFactory
>(), serviceProvider);
DependencyInjection\MvcCoreServiceCollectionExtensionsTest.cs (1)
284
typeof(
IRequestDelegateFactory
),
Routing\ActionEndpointDataSourceBaseTest.cs (1)
149
var endpointFactory = new ActionEndpointFactory(serviceProvider.GetRequiredService<RoutePatternTransformer>(), Enumerable.Empty<
IRequestDelegateFactory
>(), serviceProvider);
Routing\ActionEndpointFactoryTest.cs (2)
29
Factory = new ActionEndpointFactory(Services.GetRequiredService<RoutePatternTransformer>(), Enumerable.Empty<
IRequestDelegateFactory
>(), Services);
266
var requestDelegateFactory = new Mock<
IRequestDelegateFactory
>();
Microsoft.AspNetCore.Mvc.RazorPages (1)
DependencyInjection\MvcRazorPagesMvcCoreBuilderExtensions.cs (1)
130
ServiceDescriptor.Singleton<
IRequestDelegateFactory
, PageRequestDelegateFactory>());
Microsoft.AspNetCore.Mvc.RazorPages.Test (7)
Infrastructure\DefaultPageLoaderTest.cs (6)
38
var endpointFactory = new ActionEndpointFactory(Mock.Of<RoutePatternTransformer>(), Enumerable.Empty<
IRequestDelegateFactory
>(), Mock.Of<IServiceProvider>());
121
var endpointFactory = new ActionEndpointFactory(transformer.Object, Enumerable.Empty<
IRequestDelegateFactory
>(), Mock.Of<IServiceProvider>());
161
var endpointFactory = new ActionEndpointFactory(Mock.Of<RoutePatternTransformer>(), Enumerable.Empty<
IRequestDelegateFactory
>(), Mock.Of<IServiceProvider>());
238
var endpointFactory = new ActionEndpointFactory(transformer.Object, Enumerable.Empty<
IRequestDelegateFactory
>(), Mock.Of<IServiceProvider>());
300
var endpointFactory = new ActionEndpointFactory(transformer.Object, Enumerable.Empty<
IRequestDelegateFactory
>(), Mock.Of<IServiceProvider>());
337
var endpointFactory = new ActionEndpointFactory(Mock.Of<RoutePatternTransformer>(), Enumerable.Empty<
IRequestDelegateFactory
>(), Mock.Of<IServiceProvider>());
src\Mvc\Mvc.Core\test\Routing\ActionEndpointDataSourceBaseTest.cs (1)
149
var endpointFactory = new ActionEndpointFactory(serviceProvider.GetRequiredService<RoutePatternTransformer>(), Enumerable.Empty<
IRequestDelegateFactory
>(), serviceProvider);
Microsoft.AspNetCore.Mvc.Test (1)
MvcServiceCollectionExtensionsTest.cs (1)
549
typeof(
IRequestDelegateFactory
),