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