mirror of
https://github.com/bitwarden/server.git
synced 2025-04-17 11:08:16 -05:00
rename hubapi notification service
This commit is contained in:
parent
1ffa712b75
commit
40a410917f
@ -17,7 +17,7 @@ namespace Bit.Core.Services
|
|||||||
GlobalSettings globalSettings,
|
GlobalSettings globalSettings,
|
||||||
IHttpContextAccessor httpContextAccessor,
|
IHttpContextAccessor httpContextAccessor,
|
||||||
ILogger<RelayPushNotificationService> relayLogger,
|
ILogger<RelayPushNotificationService> relayLogger,
|
||||||
ILogger<HubApiPushNotificationService> hubLogger)
|
ILogger<NotificationsApiPushNotificationService> hubLogger)
|
||||||
{
|
{
|
||||||
if(globalSettings.SelfHosted)
|
if(globalSettings.SelfHosted)
|
||||||
{
|
{
|
||||||
@ -30,7 +30,8 @@ namespace Bit.Core.Services
|
|||||||
if(CoreHelpers.SettingHasValue(globalSettings.InternalIdentityKey) &&
|
if(CoreHelpers.SettingHasValue(globalSettings.InternalIdentityKey) &&
|
||||||
CoreHelpers.SettingHasValue(globalSettings.BaseServiceUri.InternalNotifications))
|
CoreHelpers.SettingHasValue(globalSettings.BaseServiceUri.InternalNotifications))
|
||||||
{
|
{
|
||||||
// _services.Add(new HubApiPushNotificationService(globalSettings, httpContextAccessor, hubLogger));
|
// _services.Add(new NotificationsApiPushNotificationService(
|
||||||
|
// globalSettings, httpContextAccessor, hubLogger));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -10,7 +10,7 @@ using System.Net.Http;
|
|||||||
|
|
||||||
namespace Bit.Core.Services
|
namespace Bit.Core.Services
|
||||||
{
|
{
|
||||||
public class HubApiPushNotificationService : BaseIdentityClientService, IPushNotificationService
|
public class NotificationsApiPushNotificationService : BaseIdentityClientService, IPushNotificationService
|
||||||
{
|
{
|
||||||
private readonly GlobalSettings _globalSettings;
|
private readonly GlobalSettings _globalSettings;
|
||||||
private readonly IHttpContextAccessor _httpContextAccessor;
|
private readonly IHttpContextAccessor _httpContextAccessor;
|
||||||
@ -20,10 +20,10 @@ namespace Bit.Core.Services
|
|||||||
NullValueHandling = NullValueHandling.Ignore
|
NullValueHandling = NullValueHandling.Ignore
|
||||||
};
|
};
|
||||||
|
|
||||||
public HubApiPushNotificationService(
|
public NotificationsApiPushNotificationService(
|
||||||
GlobalSettings globalSettings,
|
GlobalSettings globalSettings,
|
||||||
IHttpContextAccessor httpContextAccessor,
|
IHttpContextAccessor httpContextAccessor,
|
||||||
ILogger<HubApiPushNotificationService> logger)
|
ILogger<NotificationsApiPushNotificationService> logger)
|
||||||
: base(
|
: base(
|
||||||
globalSettings.BaseServiceUri.InternalNotifications,
|
globalSettings.BaseServiceUri.InternalNotifications,
|
||||||
globalSettings.BaseServiceUri.InternalIdentity,
|
globalSettings.BaseServiceUri.InternalIdentity,
|
Loading…
x
Reference in New Issue
Block a user