1 type derived from ControllerContext
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
44 instantiations of ControllerContext
Microsoft.AspNetCore.Mvc.Core (3)
Microsoft.AspNetCore.Mvc.Core.Test (35)
Microsoft.AspNetCore.Mvc.IntegrationTests (1)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (5)
186 references to ControllerContext
Microsoft.AspNetCore.Mvc.Core (93)
Controllers\ControllerActivatorProvider.cs (12)
15private static readonly Action<ControllerContext, object> _dispose = Dispose;
16private static readonly Func<ControllerContext, object, ValueTask> _disposeAsync = DisposeAsync;
17private static readonly Func<ControllerContext, object, ValueTask> _syncDisposeAsync = SyncDisposeAsync;
18private readonly Func<ControllerContext, object>? _controllerActivatorCreate;
19private readonly Action<ControllerContext, object>? _controllerActivatorRelease;
20private readonly Func<ControllerContext, object, ValueTask>? _controllerActivatorReleaseAsync;
40public Func<ControllerContext, object> CreateActivator(ControllerActionDescriptor descriptor)
63public Action<ControllerContext, object>? CreateReleaser(ControllerActionDescriptor descriptor)
81public Func<ControllerContext, object, ValueTask>? CreateAsyncReleaser(ControllerActionDescriptor descriptor)
103private static void Dispose(ControllerContext context, object controller)
110private static ValueTask DisposeAsync(ControllerContext context, object controller)
117private static ValueTask SyncDisposeAsync(ControllerContext context, object controller)
Controllers\ControllerFactoryProvider.cs (9)
12private readonly Func<ControllerContext, object>? _factoryCreateController;
13private readonly Action<ControllerContext, object>? _factoryReleaseController;
14private readonly Func<ControllerContext, object, ValueTask>? _factoryReleaseControllerAsync;
38public Func<ControllerContext, object> CreateControllerFactory(ControllerActionDescriptor descriptor)
58object CreateController(ControllerContext controllerContext)
73public Action<ControllerContext, object>? CreateControllerReleaser(ControllerActionDescriptor descriptor)
94public Func<ControllerContext, object, ValueTask>? CreateAsyncControllerReleaser(ControllerActionDescriptor descriptor)
115private Action<ControllerContext, object>[] GetPropertiesToActivate(ControllerActionDescriptor actionDescriptor)
117var propertyActivators = new Action<ControllerContext, object>[_propertyActivators.Length];
Microsoft.AspNetCore.Mvc.Core.Test (78)
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
Microsoft.AspNetCore.Mvc.ViewFeatures (9)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (4)