From a4e91aa57099471088455fbc3771fc9840e23229 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 2 Aug 2018 21:03:04 -0400 Subject: [PATCH] no azure queue service for now --- .../Implementations/AzureQueuePushNotificationService.cs | 6 ++++-- .../MultiServicePushNotificationService.cs | 8 +++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/Core/Services/Implementations/AzureQueuePushNotificationService.cs b/src/Core/Services/Implementations/AzureQueuePushNotificationService.cs index a942109176..84bef2c01b 100644 --- a/src/Core/Services/Implementations/AzureQueuePushNotificationService.cs +++ b/src/Core/Services/Implementations/AzureQueuePushNotificationService.cs @@ -154,12 +154,14 @@ namespace Bit.Core.Services public Task SendPayloadToUserAsync(string userId, PushType type, object payload, string identifier) { - throw new NotImplementedException(); + // Noop + return Task.FromResult(0); } public Task SendPayloadToOrganizationAsync(string orgId, PushType type, object payload, string identifier) { - throw new NotImplementedException(); + // Noop + return Task.FromResult(0); } } } diff --git a/src/Core/Services/Implementations/MultiServicePushNotificationService.cs b/src/Core/Services/Implementations/MultiServicePushNotificationService.cs index d25dd3d948..ececb16581 100644 --- a/src/Core/Services/Implementations/MultiServicePushNotificationService.cs +++ b/src/Core/Services/Implementations/MultiServicePushNotificationService.cs @@ -33,7 +33,7 @@ namespace Bit.Core.Services #if NET471 _services.Add(new NotificationHubPushNotificationService(globalSettings, httpContextAccessor)); #endif - _services.Add(new AzureQueuePushNotificationService(globalSettings, httpContextAccessor)); + // _services.Add(new AzureQueuePushNotificationService(globalSettings, httpContextAccessor)); } } @@ -99,12 +99,14 @@ namespace Bit.Core.Services public Task SendPayloadToUserAsync(string userId, PushType type, object payload, string identifier) { - throw new NotImplementedException(); + PushToServices((s) => s.SendPayloadToUserAsync(userId, type, payload, identifier)); + return Task.FromResult(0); } public Task SendPayloadToOrganizationAsync(string orgId, PushType type, object payload, string identifier) { - throw new NotImplementedException(); + PushToServices((s) => s.SendPayloadToOrganizationAsync(orgId, type, payload, identifier)); + return Task.FromResult(0); } private void PushToServices(Func pushFunc)