From 40a410917ff077cf6bcbfec737072469c7f52c99 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 16 Aug 2018 13:52:11 -0400 Subject: [PATCH] rename hubapi notification service --- .../Implementations/MultiServicePushNotificationService.cs | 5 +++-- ...ervice.cs => NotificationsApiPushNotificationService.cs} | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) rename src/Core/Services/Implementations/{HubApiPushNotificationService.cs => NotificationsApiPushNotificationService.cs} (95%) diff --git a/src/Core/Services/Implementations/MultiServicePushNotificationService.cs b/src/Core/Services/Implementations/MultiServicePushNotificationService.cs index 7550932d34..bd47b2afac 100644 --- a/src/Core/Services/Implementations/MultiServicePushNotificationService.cs +++ b/src/Core/Services/Implementations/MultiServicePushNotificationService.cs @@ -17,7 +17,7 @@ namespace Bit.Core.Services GlobalSettings globalSettings, IHttpContextAccessor httpContextAccessor, ILogger relayLogger, - ILogger hubLogger) + ILogger 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 diff --git a/src/Core/Services/Implementations/HubApiPushNotificationService.cs b/src/Core/Services/Implementations/NotificationsApiPushNotificationService.cs similarity index 95% rename from src/Core/Services/Implementations/HubApiPushNotificationService.cs rename to src/Core/Services/Implementations/NotificationsApiPushNotificationService.cs index 54a4717fe7..4c0c54013a 100644 --- a/src/Core/Services/Implementations/HubApiPushNotificationService.cs +++ b/src/Core/Services/Implementations/NotificationsApiPushNotificationService.cs @@ -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 logger) + ILogger logger) : base( globalSettings.BaseServiceUri.InternalNotifications, globalSettings.BaseServiceUri.InternalIdentity,