10 references to CreateInstance
BasicWebSite (1)
RequestScopedActionConstraint.cs (1)
28return (Constraint)ActivatorUtilities.CreateInstance(services, typeof(Constraint), new[] { _requestId });
Microsoft.AspNetCore.Authentication.Core (1)
AuthenticationHandlerProvider.cs (1)
50ActivatorUtilities.CreateInstance(context.RequestServices, scheme.HandlerType))
Microsoft.AspNetCore.Hosting (1)
GenericHost\GenericWebHostBuilder.cs (1)
235instance ??= ActivatorUtilities.CreateInstance(new HostServiceProvider(webHostBuilderContext), startupType);
Microsoft.AspNetCore.Http.Abstractions (1)
Extensions\UseMiddlewareExtensions.cs (1)
131var instance = ActivatorUtilities.CreateInstance(_app.ApplicationServices, _middleware, ctorArgs);
Microsoft.AspNetCore.OutputCaching (1)
Policies\TypedPolicy.cs (1)
34return _instance ??= ActivatorUtilities.CreateInstance(options.Value.ApplicationServices, _policyType) as IOutputCachePolicy;
Microsoft.AspNetCore.RateLimiting (1)
RateLimiterOptions.cs (1)
78var instance = (IRateLimiterPolicy<TPartitionKey>)ActivatorUtilities.CreateInstance(serviceProvider, typeof(TPolicy));
Microsoft.AspNetCore.ResponseCompression (1)
CompressionProviderFactory.cs (1)
27return (ICompressionProvider)ActivatorUtilities.CreateInstance(serviceProvider, ProviderType, Type.EmptyTypes);
Microsoft.Extensions.DependencyInjection.Abstractions (2)
ActivatorUtilities.cs (2)
352return (T)CreateInstance(provider, typeof(T), parameters); 376return provider.GetService(type) ?? CreateInstance(provider, type);
Microsoft.Extensions.Http (1)
ITypedHttpClientFactory.cs (1)
33/// <see cref="ActivatorUtilities.CreateInstance(IServiceProvider, Type, object[])" /> for details.