16 references to CreateFactory
Microsoft.AspNetCore.Components (1)
DefaultComponentActivator.cs (1)
36
factory = ActivatorUtilities.
CreateFactory
(componentType, Type.EmptyTypes);
Microsoft.AspNetCore.Mvc.Core (6)
Controllers\ControllerActivatorProvider.cs (1)
58
var typeActivator = ActivatorUtilities.
CreateFactory
(controllerType, Type.EmptyTypes);
Infrastructure\ITypeActivatorCache.cs (1)
10
/// <see cref="Extensions.DependencyInjection.ActivatorUtilities.
CreateFactory
(Type, Type[])"/>.
Infrastructure\TypeActivatorCache.cs (2)
11
/// <see cref="ActivatorUtilities.
CreateFactory
(Type, Type[])"/>.
16
(type) => ActivatorUtilities.
CreateFactory
(type, Type.EmptyTypes);
ModelBinding\Binders\BinderTypeModelBinder.cs (1)
36
_factory = ActivatorUtilities.
CreateFactory
(binderType, Type.EmptyTypes);
TypeFilterAttribute.cs (1)
67
_factory = ActivatorUtilities.
CreateFactory
(ImplementationType, argumentTypes ?? Type.EmptyTypes);
Microsoft.AspNetCore.Mvc.Razor (1)
Infrastructure\DefaultTagHelperActivator.cs (1)
26
private static readonly ObjectFactory _objectFactory = ActivatorUtilities.
CreateFactory
(typeof(TTagHelper), Type.EmptyTypes);
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\DefaultPageModelActivatorProvider.cs (1)
32
var factory = ActivatorUtilities.
CreateFactory
(modelTypeInfo, Type.EmptyTypes);
Microsoft.AspNetCore.Routing (2)
Builder\EndpointFilterExtensions.cs (2)
41
filterFactory = ActivatorUtilities.
CreateFactory
(typeof(TFilterType), new[] { typeof(EndpointFilterFactoryContext) });
45
filterFactory = ActivatorUtilities.
CreateFactory
(typeof(TFilterType), Type.EmptyTypes);
Microsoft.AspNetCore.SignalR.Core (2)
Internal\DefaultHubActivator.cs (1)
13
private static readonly Lazy<ObjectFactory> _objectFactory = new Lazy<ObjectFactory>(() => ActivatorUtilities.
CreateFactory
(typeof(THub), Type.EmptyTypes));
Internal\HubFilterFactory.cs (1)
18
_objectFactory = ActivatorUtilities.
CreateFactory
(filterType, Array.Empty<Type>());
Microsoft.Extensions.DependencyInjection.Abstractions (1)
ObjectFactory.cs (1)
9
/// The result of <see cref="ActivatorUtilities.
CreateFactory
(Type, Type[])"/>.
Microsoft.Extensions.Http (1)
DefaultTypedHttpClientFactory.cs (1)
42
return ActivatorUtilities.
CreateFactory
(typeof(TClient), new Type[] { typeof(HttpClient), });
Microsoft.Extensions.ObjectPool.DependencyInjection (1)
DependencyInjectionPooledObjectPolicy.cs (1)
21
_factory = ActivatorUtilities.
CreateFactory
(typeof(TImplementation), Type.EmptyTypes);