1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-28 03:51:23 +01:00

rename hubapi notification service

This commit is contained in:
Kyle Spearrin 2018-08-16 13:52:11 -04:00
parent 1ffa712b75
commit 40a410917f
2 changed files with 6 additions and 5 deletions

View File

@ -17,7 +17,7 @@ namespace Bit.Core.Services
GlobalSettings globalSettings,
IHttpContextAccessor httpContextAccessor,
ILogger<RelayPushNotificationService> relayLogger,
ILogger<HubApiPushNotificationService> hubLogger)
ILogger<NotificationsApiPushNotificationService> hubLogger)
{
if(globalSettings.SelfHosted)
{
@ -30,7 +30,8 @@ namespace Bit.Core.Services
if(CoreHelpers.SettingHasValue(globalSettings.InternalIdentityKey) &&
CoreHelpers.SettingHasValue(globalSettings.BaseServiceUri.InternalNotifications))
{
// _services.Add(new HubApiPushNotificationService(globalSettings, httpContextAccessor, hubLogger));
// _services.Add(new NotificationsApiPushNotificationService(
// globalSettings, httpContextAccessor, hubLogger));
}
}
else

View File

@ -10,7 +10,7 @@ using System.Net.Http;
namespace Bit.Core.Services
{
public class HubApiPushNotificationService : BaseIdentityClientService, IPushNotificationService
public class NotificationsApiPushNotificationService : BaseIdentityClientService, IPushNotificationService
{
private readonly GlobalSettings _globalSettings;
private readonly IHttpContextAccessor _httpContextAccessor;
@ -20,10 +20,10 @@ namespace Bit.Core.Services
NullValueHandling = NullValueHandling.Ignore
};
public HubApiPushNotificationService(
public NotificationsApiPushNotificationService(
GlobalSettings globalSettings,
IHttpContextAccessor httpContextAccessor,
ILogger<HubApiPushNotificationService> logger)
ILogger<NotificationsApiPushNotificationService> logger)
: base(
globalSettings.BaseServiceUri.InternalNotifications,
globalSettings.BaseServiceUri.InternalIdentity,