public Task EnqueueNotification(uint userId, BlazeNotification notification) { var userContext = _clientManager.GetByUserId(userId) as BlazeClientContext; if (userContext == null) { Logger.Warn($"User {userId} is not connected"); return(Task.CompletedTask); } var messageData = EncodeNotification(notification); userContext.PendingNotifications.Enqueue(messageData); return(Task.CompletedTask); }