2 implementations of IControllerActivator
Microsoft.AspNetCore.Mvc.Core (2)
Controllers\DefaultControllerActivator.cs (1)
12
internal sealed class DefaultControllerActivator :
IControllerActivator
Controllers\ServiceBasedControllerActivator.cs (1)
12
public class ServiceBasedControllerActivator :
IControllerActivator
22 references to IControllerActivator
Microsoft.AspNetCore.Mvc.Core (11)
ControllerBase.cs (1)
63
/// <see cref="Controllers.
IControllerActivator
"/> activates this property while activating controllers.
Controllers\ControllerActivatorProvider.cs (2)
25
/// <param name="controllerActivator">A <see cref="
IControllerActivator
"/> which is delegated to when not the default implementation.</param>
26
public ControllerActivatorProvider(
IControllerActivator
controllerActivator)
Controllers\DefaultControllerActivator.cs (1)
10
/// <see cref="
IControllerActivator
"/> that uses type activation to create controllers.
Controllers\DefaultControllerFactory.cs (3)
14
private readonly
IControllerActivator
_controllerActivator;
21
/// <see cref="
IControllerActivator
"/> used to create controller instances.
28
IControllerActivator
controllerActivator,
Controllers\ServiceBasedControllerActivator.cs (1)
9
/// A <see cref="
IControllerActivator
"/> that retrieves controllers as services from the request's
DependencyInjection\MvcCoreMvcBuilderExtensions.cs (1)
132
builder.Services.Replace(ServiceDescriptor.Transient<
IControllerActivator
, ServiceBasedControllerActivator>());
DependencyInjection\MvcCoreMvcCoreBuilderExtensions.cs (1)
149
builder.Services.Replace(ServiceDescriptor.Transient<
IControllerActivator
, ServiceBasedControllerActivator>());
DependencyInjection\MvcCoreServiceCollectionExtensions.cs (1)
176
services.TryAddTransient<
IControllerActivator
, DefaultControllerActivator>();
Microsoft.AspNetCore.Mvc.Core.Test (10)
Controllers\ControllerActivatorProviderTest.cs (2)
19
var activator = new Mock<
IControllerActivator
>();
74
var activator = new Mock<
IControllerActivator
>();
Controllers\ControllerFactoryProviderTest.cs (2)
96
Mock.Of<
IControllerActivator
>(),
153
Mock.Of<
IControllerActivator
>(),
Controllers\DefaultControllerFactoryTest.cs (5)
34
var activator = new Mock<
IControllerActivator
>();
190
var activatorMock = new Mock<
IControllerActivator
>();
206
var activatorMock = new Mock<
IControllerActivator
>();
237
private static DefaultControllerFactory CreateControllerFactory(
IControllerActivator
controllerActivator = null)
239
var activatorMock = new Mock<
IControllerActivator
>();
DependencyInjection\MvcBuilderExtensionsTest.cs (1)
106
Assert.Equal(typeof(
IControllerActivator
), services[2].ServiceType);
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Controller.cs (1)
27
/// By default, this property is initialized when <see cref="Controllers.
IControllerActivator
"/> activates