12 references to AddTransient
Microsoft.AspNetCore.Http.Extensions.Tests (1)
ProblemDetailsDefaultWriterTest.cs (1)
695services.AddTransient(typeof(ILogger<>), typeof(NullLogger<>));
Microsoft.AspNetCore.Http.Results.Tests (4)
LocalRedirectResultTests.cs (1)
123serviceCollection.AddTransient(typeof(ILogger<>), typeof(NullLogger<>));
ProblemResultTests.cs (1)
253services.AddTransient(typeof(ILogger<>), typeof(NullLogger<>));
src\Shared\ResultsTests\RedirectResultTestBase.cs (1)
65serviceCollection.AddTransient(typeof(ILogger<>), typeof(NullLogger<>));
ValidationProblemResultTests.cs (1)
179services.AddTransient(typeof(ILogger<>), typeof(NullLogger<>));
Microsoft.AspNetCore.Mvc.Core.Test (2)
Infrastructure\DefaultApiProblemDetailsWriterTest.cs (1)
218services.AddTransient(typeof(ILogger<>), typeof(NullLogger<>));
src\Shared\ResultsTests\RedirectResultTestBase.cs (1)
65serviceCollection.AddTransient(typeof(ILogger<>), typeof(NullLogger<>));
Microsoft.AspNetCore.Mvc.Test (1)
MvcOptionsSetupTest.cs (1)
294.AddTransient(typeof(ILogger<>), typeof(Logger<>));
Microsoft.Extensions.DependencyInjection.Abstractions (2)
ServiceCollectionServiceExtensions.cs (2)
74return services.AddTransient(typeof(TService), typeof(TImplementation)); 92return services.AddTransient(serviceType, serviceType);
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
CommonHealthChecksExtensions.Manual.cs (1)
58.AddTransient(typeof(IManualHealthCheck<>), typeof(ManualHealthCheck<>))
Microsoft.Extensions.Options (1)
OptionsServiceCollectionExtensions.cs (1)
221services.AddTransient(serviceType, configureType);