1
0
mirror of https://github.com/bitwarden/server.git synced 2025-01-26 22:31:30 +01:00

no azure queue service for now

This commit is contained in:
Kyle Spearrin 2018-08-02 21:03:04 -04:00
parent 0cde13e0c6
commit a4e91aa570
2 changed files with 9 additions and 5 deletions

View File

@ -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);
}
}
}

View File

@ -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<IPushNotificationService, Task> pushFunc)