mirror of
https://github.com/bitwarden/server.git
synced 2025-04-15 10:08:14 -05:00
register new services
This commit is contained in:
parent
68b5ba6474
commit
3af2fbd4e9
@ -2,7 +2,6 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
using System.Security.Cryptography;
|
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Bit.Billing.Models;
|
using Bit.Billing.Models;
|
||||||
using Bit.Core.Repositories;
|
using Bit.Core.Repositories;
|
||||||
@ -11,7 +10,7 @@ using Microsoft.Extensions.Logging;
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using Newtonsoft.Json.Linq;
|
using Newtonsoft.Json.Linq;
|
||||||
|
|
||||||
namespace Bit.Core.Services.Implementations
|
namespace Bit.Core.Services
|
||||||
{
|
{
|
||||||
public class AppleIapService : IAppleIapService
|
public class AppleIapService : IAppleIapService
|
||||||
{
|
{
|
||||||
|
@ -65,11 +65,13 @@ namespace Bit.Core.Utilities
|
|||||||
{
|
{
|
||||||
services.AddSingleton<IEventRepository, SqlServerRepos.EventRepository>();
|
services.AddSingleton<IEventRepository, SqlServerRepos.EventRepository>();
|
||||||
services.AddSingleton<IInstallationDeviceRepository, NoopRepos.InstallationDeviceRepository>();
|
services.AddSingleton<IInstallationDeviceRepository, NoopRepos.InstallationDeviceRepository>();
|
||||||
|
services.AddSingleton<IMetaDataRespository, NoopRepos.MetaDataRepository>();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
services.AddSingleton<IEventRepository, TableStorageRepos.EventRepository>();
|
services.AddSingleton<IEventRepository, TableStorageRepos.EventRepository>();
|
||||||
services.AddSingleton<IInstallationDeviceRepository, TableStorageRepos.InstallationDeviceRepository>();
|
services.AddSingleton<IInstallationDeviceRepository, TableStorageRepos.InstallationDeviceRepository>();
|
||||||
|
services.AddSingleton<IMetaDataRespository, TableStorageRepos.MetaDataRespository>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -82,6 +84,7 @@ namespace Bit.Core.Utilities
|
|||||||
services.AddScoped<IGroupService, GroupService>();
|
services.AddScoped<IGroupService, GroupService>();
|
||||||
services.AddScoped<Services.IEventService, EventService>();
|
services.AddScoped<Services.IEventService, EventService>();
|
||||||
services.AddSingleton<IDeviceService, DeviceService>();
|
services.AddSingleton<IDeviceService, DeviceService>();
|
||||||
|
services.AddSingleton<IAppleIapService, AppleIapService>();
|
||||||
}
|
}
|
||||||
|
|
||||||
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