1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-14 09:38:16 -05:00

register new services

This commit is contained in:
Kyle Spearrin 2019-09-18 09:46:26 -04:00
parent 68b5ba6474
commit 3af2fbd4e9
2 changed files with 4 additions and 2 deletions

View File

@ -2,7 +2,6 @@
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Security.Cryptography;
using System.Threading.Tasks;
using Bit.Billing.Models;
using Bit.Core.Repositories;
@ -11,7 +10,7 @@ using Microsoft.Extensions.Logging;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace Bit.Core.Services.Implementations
namespace Bit.Core.Services
{
public class AppleIapService : IAppleIapService
{

View File

@ -65,11 +65,13 @@ namespace Bit.Core.Utilities
{
services.AddSingleton<IEventRepository, SqlServerRepos.EventRepository>();
services.AddSingleton<IInstallationDeviceRepository, NoopRepos.InstallationDeviceRepository>();
services.AddSingleton<IMetaDataRespository, NoopRepos.MetaDataRepository>();
}
else
{
services.AddSingleton<IEventRepository, TableStorageRepos.EventRepository>();
services.AddSingleton<IInstallationDeviceRepository, TableStorageRepos.InstallationDeviceRepository>();
services.AddSingleton<IMetaDataRespository, TableStorageRepos.MetaDataRespository>();
}
}
@ -82,6 +84,7 @@ namespace Bit.Core.Utilities
services.AddScoped<IGroupService, GroupService>();
services.AddScoped<Services.IEventService, EventService>();
services.AddSingleton<IDeviceService, DeviceService>();
services.AddSingleton<IAppleIapService, AppleIapService>();
}
public static void AddDefaultServices(this IServiceCollection services, GlobalSettings globalSettings)