mirror of
https://github.com/bitwarden/server.git
synced 2025-02-01 23:31:41 +01:00
rename to push notification service
This commit is contained in:
parent
c95d39f563
commit
887fe4fc05
@ -4,7 +4,7 @@ using Bit.Core.Models.Table;
|
||||
|
||||
namespace Bit.Core.Services
|
||||
{
|
||||
public interface IPushService
|
||||
public interface IPushNotificationService
|
||||
{
|
||||
Task PushSyncCipherCreateAsync(Cipher cipher);
|
||||
Task PushSyncCipherUpdateAsync(Cipher cipher);
|
@ -17,7 +17,7 @@ namespace Bit.Core.Services
|
||||
private readonly IOrganizationRepository _organizationRepository;
|
||||
private readonly IOrganizationUserRepository _organizationUserRepository;
|
||||
private readonly ICollectionCipherRepository _collectionCipherRepository;
|
||||
private readonly IPushService _pushService;
|
||||
private readonly IPushNotificationService _pushService;
|
||||
|
||||
public CipherService(
|
||||
ICipherRepository cipherRepository,
|
||||
@ -26,7 +26,7 @@ namespace Bit.Core.Services
|
||||
IOrganizationRepository organizationRepository,
|
||||
IOrganizationUserRepository organizationUserRepository,
|
||||
ICollectionCipherRepository collectionCipherRepository,
|
||||
IPushService pushService)
|
||||
IPushNotificationService pushService)
|
||||
{
|
||||
_cipherRepository = cipherRepository;
|
||||
_folderRepository = folderRepository;
|
||||
|
@ -24,7 +24,7 @@ namespace Bit.Core.Services
|
||||
private readonly IGroupRepository _groupRepository;
|
||||
private readonly IDataProtector _dataProtector;
|
||||
private readonly IMailService _mailService;
|
||||
private readonly IPushService _pushService;
|
||||
private readonly IPushNotificationService _pushService;
|
||||
|
||||
public OrganizationService(
|
||||
IOrganizationRepository organizationRepository,
|
||||
@ -34,7 +34,7 @@ namespace Bit.Core.Services
|
||||
IGroupRepository groupRepository,
|
||||
IDataProtectionProvider dataProtectionProvider,
|
||||
IMailService mailService,
|
||||
IPushService pushService)
|
||||
IPushNotificationService pushService)
|
||||
{
|
||||
_organizationRepository = organizationRepository;
|
||||
_organizationUserRepository = organizationUserRepository;
|
||||
|
@ -18,18 +18,18 @@ using Microsoft.AspNetCore.Http;
|
||||
|
||||
namespace Bit.Core.Services
|
||||
{
|
||||
public class PushSharpPushService : IPushService
|
||||
public class PushSharpPushNotificationService : IPushNotificationService
|
||||
{
|
||||
private readonly IDeviceRepository _deviceRepository;
|
||||
private readonly ILogger<IPushService> _logger;
|
||||
private readonly ILogger<IPushNotificationService> _logger;
|
||||
private readonly IHttpContextAccessor _httpContextAccessor;
|
||||
private GcmServiceBroker _gcmBroker;
|
||||
private ApnsServiceBroker _apnsBroker;
|
||||
|
||||
public PushSharpPushService(
|
||||
public PushSharpPushNotificationService(
|
||||
IDeviceRepository deviceRepository,
|
||||
IHttpContextAccessor httpContextAccessor,
|
||||
ILogger<IPushService> logger,
|
||||
ILogger<IPushNotificationService> logger,
|
||||
IHostingEnvironment hostingEnvironment,
|
||||
GlobalSettings globalSettings)
|
||||
{
|
@ -20,7 +20,7 @@ namespace Bit.Core.Services
|
||||
private readonly ICipherRepository _cipherRepository;
|
||||
private readonly IOrganizationUserRepository _organizationUserRepository;
|
||||
private readonly IMailService _mailService;
|
||||
private readonly IPushService _pushService;
|
||||
private readonly IPushNotificationService _pushService;
|
||||
private readonly IdentityErrorDescriber _identityErrorDescriber;
|
||||
private readonly IdentityOptions _identityOptions;
|
||||
private readonly IPasswordHasher<User> _passwordHasher;
|
||||
@ -32,7 +32,7 @@ namespace Bit.Core.Services
|
||||
ICipherRepository cipherRepository,
|
||||
IOrganizationUserRepository organizationUserRepository,
|
||||
IMailService mailService,
|
||||
IPushService pushService,
|
||||
IPushNotificationService pushService,
|
||||
IUserStore<User> store,
|
||||
IOptions<IdentityOptions> optionsAccessor,
|
||||
IPasswordHasher<User> passwordHasher,
|
||||
|
@ -4,7 +4,7 @@ using Bit.Core.Models.Table;
|
||||
|
||||
namespace Bit.Core.Services
|
||||
{
|
||||
public class NoopPushService : IPushService
|
||||
public class NoopPushNotificationService : IPushNotificationService
|
||||
{
|
||||
public Task PushSyncCipherCreateAsync(Cipher cipher)
|
||||
{
|
@ -50,7 +50,7 @@ namespace Bit.Core.Utilities
|
||||
public static void AddDefaultServices(this IServiceCollection services)
|
||||
{
|
||||
services.AddSingleton<IMailService, SendGridMailService>();
|
||||
services.AddSingleton<IPushService, PushSharpPushService>();
|
||||
services.AddSingleton<IPushNotificationService, PushSharpPushNotificationService>();
|
||||
services.AddSingleton<IBlockIpService, AzureQueueBlockIpService>();
|
||||
services.AddSingleton<IPushRegistrationService, NotificationHubPushRegistrationService>();
|
||||
}
|
||||
@ -58,7 +58,7 @@ namespace Bit.Core.Utilities
|
||||
public static void AddNoopServices(this IServiceCollection services)
|
||||
{
|
||||
services.AddSingleton<IMailService, NoopMailService>();
|
||||
services.AddSingleton<IPushService, NoopPushService>();
|
||||
services.AddSingleton<IPushNotificationService, NoopPushNotificationService>();
|
||||
services.AddSingleton<IBlockIpService, NoopBlockIpService>();
|
||||
services.AddSingleton<IPushRegistrationService, NoopPushRegistrationService>();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user