15 references to CreateInstance
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\ClientErrorResultFilterFactory.cs (1)
19
var 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
221
ActivatorUtilities.
CreateInstance
<T>(serviceProvider, args);
239
/// This method will use <see cref="ActivatorUtilities.
CreateInstance
{T}(IServiceProvider, object[])"/> to create the health check
258
T CreateInstance(IServiceProvider serviceProvider) => ActivatorUtilities.
CreateInstance
<T>(serviceProvider, args);
Microsoft.Extensions.Diagnostics.Probes (1)
TcpEndpointProbesExtensions.cs (1)
52
return ActivatorUtilities.
CreateInstance
<TcpEndpointProbesService>(provider, options);
Microsoft.Extensions.ML.Tests (6)
FileLoaderTests.cs (3)
34
var loaderUnderTest = ActivatorUtilities.
CreateInstance
<FileModelLoader>(sp);
47
var loaderUnderTest = ActivatorUtilities.
CreateInstance
<FileModelLoader>(sp);
66
var loaderUnderTest = ActivatorUtilities.
CreateInstance
<FileLoaderMock>(sp);
UriLoaderTests.cs (3)
34
var loaderUnderTest = ActivatorUtilities.
CreateInstance
<UriModelLoader>(sp);
47
var loaderUnderTest = ActivatorUtilities.
CreateInstance
<UriLoaderMock>(sp);
66
var loaderUnderTest = ActivatorUtilities.
CreateInstance
<UriLoaderMock>(sp);