30 references to ObjectFactory
Microsoft.AspNetCore.Components (2)
DefaultComponentActivator.cs (2)
12private static readonly ConcurrentDictionary<Type, ObjectFactory> _cachedComponentTypeInfo = new(); 29private static ObjectFactory GetObjectFactory([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type componentType)
Microsoft.AspNetCore.Mvc.Core (9)
Controllers\ControllerActivatorProvider.cs (1)
58var typeActivator = ActivatorUtilities.CreateFactory(controllerType, Type.EmptyTypes);
Infrastructure\ITypeActivatorCache.cs (1)
9/// Caches <see cref="Extensions.DependencyInjection.ObjectFactory"/> instances produced by
Infrastructure\TypeActivatorCache.cs (5)
10/// Caches <see cref="ObjectFactory"/> instances produced by 15private readonly Func<Type, ObjectFactory> _createFactory = 17private readonly ConcurrentDictionary<Type, ObjectFactory> _typeActivatorCache = 18new ConcurrentDictionary<Type, ObjectFactory>(); 28var createFactory = _typeActivatorCache.GetOrAdd(implementationType, _createFactory);
ModelBinding\Binders\BinderTypeModelBinder.cs (1)
17private readonly ObjectFactory _factory;
TypeFilterAttribute.cs (1)
28private ObjectFactory? _factory;
Microsoft.AspNetCore.Mvc.Razor (1)
Infrastructure\DefaultTagHelperActivator.cs (1)
26private static readonly ObjectFactory _objectFactory = ActivatorUtilities.CreateFactory(typeof(TTagHelper), Type.EmptyTypes);
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\DefaultPageModelActivatorProvider.cs (1)
32var factory = ActivatorUtilities.CreateFactory(modelTypeInfo, Type.EmptyTypes);
Microsoft.AspNetCore.OpenApi (3)
Transformers\TypeBasedOpenApiDocumentTransformer.cs (1)
15private readonly ObjectFactory _transformerFactory;
Transformers\TypeBasedOpenApiOperationTransformer.cs (1)
15private readonly ObjectFactory _transformerFactory;
Transformers\TypeBasedOpenApiSchemaTransformer.cs (1)
15private readonly ObjectFactory _transformerFactory;
Microsoft.AspNetCore.Routing (1)
Builder\EndpointFilterExtensions.cs (1)
38ObjectFactory filterFactory;
Microsoft.AspNetCore.SignalR.Core (3)
Internal\DefaultHubActivator.cs (2)
13private static readonly Lazy<ObjectFactory> _objectFactory = new Lazy<ObjectFactory>(() => ActivatorUtilities.CreateFactory(typeof(THub), Type.EmptyTypes));
Internal\HubFilterFactory.cs (1)
11private readonly ObjectFactory _objectFactory;
Microsoft.Extensions.DependencyInjection.Abstractions (6)
ActivatorUtilities.cs (6)
276public static ObjectFactory CreateFactory( 294var factoryLambda = Expression.Lambda<ObjectFactory>( 297ObjectFactory? result = factoryLambda.Compile(); 321var factory = CreateFactoryReflection(typeof(T), argumentTypes); 447private static ObjectFactory CreateFactoryReflection( 506ObjectFactory InvokeCanonical()
Microsoft.Extensions.Http (3)
DefaultTypedHttpClientFactory.cs (3)
38private static readonly Func<ObjectFactory> _createActivator = () => 50private ObjectFactory? _activator; 54public ObjectFactory Activator => LazyInitializer.EnsureInitialized(
Microsoft.Extensions.ObjectPool.DependencyInjection (1)
DependencyInjectionPooledObjectPolicy.cs (1)
15private readonly ObjectFactory _factory;