Пример #1
0
 protected virtual async Task OnSend(PushNotification notification)
 {
     if (notification.ServerId != ScalablePushNotificationManager.ServerId)
     {
         await _storage.SavePushNotificationAsync(notification);
     }
 }
Пример #2
0
        public virtual async Task SendAsync(PushNotification notification)
        {
            await _storage.SavePushNotificationAsync(notification);

            if (_hubContext != null)
            {
                await _hubContext.Clients.All.SendAsync("Send", notification);
            }
        }