1
0
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:
Kyle Spearrin 2017-12-04 09:32:42 -05:00
parent 635db35347
commit bcd8a06994

View File

@ -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)