11 references to AddScoped
Microsoft.AspNetCore.Http.Connections.Tests (2)
HttpConnectionDispatcherTests.cs (2)
3015services.AddScoped(typeof(MessageWrapper), _ => 3070services.AddScoped(typeof(MessageWrapper), _ =>
Microsoft.AspNetCore.Identity (1)
IdentityBuilderExtensions.cs (1)
81builder.Services.AddScoped(typeof(TSignInManager), services => services.GetRequiredService(managerType));
Microsoft.Extensions.Caching.SqlServer.Tests (1)
SqlServerCacheServicesExtensionsTest.cs (1)
35services.AddScoped(typeof(IDistributedCache), sp => Mock.Of<IDistributedCache>());
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (3)
CacheServiceExtensionsTests.cs (3)
37services.AddScoped(typeof(IDistributedCache), sp => Mock.Of<IDistributedCache>()); 98services.AddScoped(typeof(IDistributedCache), sp => Mock.Of<IDistributedCache>()); 107services.AddScoped(typeof(ILoggerFactory), _ => loggerFactory.Object);
Microsoft.Extensions.DependencyInjection.Abstractions (2)
ServiceCollectionServiceExtensions.cs (2)
271return services.AddScoped(typeof(TService), implementationFactory); 295return services.AddScoped(typeof(TService), implementationFactory);
Microsoft.Extensions.Identity.Core (2)
IdentityBuilder.cs (2)
184Services.AddScoped(customType, services => services.GetRequiredService(userManagerType)); 270Services.AddScoped(typeof(TRoleManager), services => services.GetRequiredService(managerType));