Esempio n. 1
0
        public bool MessageDelivered(SimpleMessage message)
        {
            try
            {
                message.UserId = CurUserId;
                var result = _backend.MessageDelivered(WorkerContext, message);

                if (result.Success)
                {
                    Clients.OthersInGroup(message.ChatId).MessageDelivered(message);
                    Logger.Debug(LogKey + message);
                    return(true);
                }
                Logger.Warn(result + LogKey + message);
            }
            catch (Exception e)
            {
                Logger.Error(e);
            }
            return(false);
        }
Esempio n. 2
0
 public ResponseModel <bool> MessageDelivered(IWorkerContext context, SimpleMessage message)
 {
     return(_backend.MessageDelivered(context, message));
 }