15 references to CreateInstance
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\ClientErrorResultFilterFactory.cs (1)
19var resultFilter = ActivatorUtilities.CreateInstance<ClientErrorResultFilter>(serviceProvider);
Microsoft.DotNet.Build.Tasks.Feed.Tests (1)
BuildModelFactoryTests.cs (1)
63_buildModelFactory = ActivatorUtilities.CreateInstance<BuildModelFactory>(provider);
Microsoft.Extensions.Diagnostics.HealthChecks (6)
DependencyInjection\HealthChecksBuilderAddCheckExtensions.cs (6)
146/// This method will use <see cref="ActivatorUtilities.CreateInstance{T}(IServiceProvider, object[])"/> to create the health check 172/// This method will use <see cref="ActivatorUtilities.CreateInstance{T}(IServiceProvider, object[])"/> to create the health check 202/// This method will use <see cref="ActivatorUtilities.CreateInstance{T}(IServiceProvider, object[])"/> to create the health check 221ActivatorUtilities.CreateInstance<T>(serviceProvider, args); 239/// This method will use <see cref="ActivatorUtilities.CreateInstance{T}(IServiceProvider, object[])"/> to create the health check 258T CreateInstance(IServiceProvider serviceProvider) => ActivatorUtilities.CreateInstance<T>(serviceProvider, args);
Microsoft.Extensions.Diagnostics.Probes (1)
TcpEndpointProbesExtensions.cs (1)
52return ActivatorUtilities.CreateInstance<TcpEndpointProbesService>(provider, options);
Microsoft.Extensions.ML.Tests (6)
FileLoaderTests.cs (3)
34var loaderUnderTest = ActivatorUtilities.CreateInstance<FileModelLoader>(sp); 47var loaderUnderTest = ActivatorUtilities.CreateInstance<FileModelLoader>(sp); 66var loaderUnderTest = ActivatorUtilities.CreateInstance<FileLoaderMock>(sp);
UriLoaderTests.cs (3)
34var loaderUnderTest = ActivatorUtilities.CreateInstance<UriModelLoader>(sp); 47var loaderUnderTest = ActivatorUtilities.CreateInstance<UriLoaderMock>(sp); 66var loaderUnderTest = ActivatorUtilities.CreateInstance<UriLoaderMock>(sp);