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:
parent
0cde13e0c6
commit
a4e91aa570
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user