mirror of
https://github.com/bitwarden/server.git
synced 2025-04-17 11:08:16 -05:00
singleton at end
This commit is contained in:
parent
635db35347
commit
bcd8a06994
@ -56,11 +56,11 @@ namespace Bit.Core.Utilities
|
|||||||
{
|
{
|
||||||
services.AddScoped<ICipherService, CipherService>();
|
services.AddScoped<ICipherService, CipherService>();
|
||||||
services.AddScoped<IUserService, UserService>();
|
services.AddScoped<IUserService, UserService>();
|
||||||
services.AddSingleton<IDeviceService, DeviceService>();
|
|
||||||
services.AddScoped<IOrganizationService, OrganizationService>();
|
services.AddScoped<IOrganizationService, OrganizationService>();
|
||||||
services.AddScoped<ICollectionService, CollectionService>();
|
services.AddScoped<ICollectionService, CollectionService>();
|
||||||
services.AddScoped<IGroupService, GroupService>();
|
services.AddScoped<IGroupService, GroupService>();
|
||||||
services.AddScoped<Services.IEventService, EventService>();
|
services.AddScoped<Services.IEventService, EventService>();
|
||||||
|
services.AddSingleton<IDeviceService, DeviceService>();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void AddDefaultServices(this IServiceCollection services, GlobalSettings globalSettings)
|
public static void AddDefaultServices(this IServiceCollection services, GlobalSettings globalSettings)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user