1
0
mirror of https://github.com/bitwarden/server synced 2025-12-17 08:43:27 +00:00

support message pack protocol for signalr

This commit is contained in:
Kyle Spearrin
2018-08-23 21:56:48 -04:00
parent d458d77511
commit 68c349f72f
6 changed files with 62 additions and 37 deletions

View File

@@ -68,9 +68,11 @@ namespace Bit.Notifications
{
foreach(var message in messages)
{
var notificationJson = message.AsString;
var notification = JsonConvert.DeserializeObject<PushNotificationData<object>>(
message.AsString);
await HubHelpers.SendNotificationToHubAsync(notification, _hubContext, cancellationToken);
notificationJson);
await HubHelpers.SendNotificationToHubAsync(notification.Type, notificationJson,
_hubContext, cancellationToken);
await _queue.DeleteMessageAsync(message);
}
}