Exemple #1
0
        private void Process(Message message)
        {
            IMessageHandler      handler       = this.messageHandlerFactory.GetMessageHandler(message.channel);
            MessageHandlerResult handlerResult = handler.HandleMessage(message);

            this.response.Add(handlerResult.Message);
            this.ShouldSendResultStraightBackToClient |= !handlerResult.CanTreatAsLongPoll;
        }
        private void Process(Message message)
        {
            IMessageHandler      handler       = this.messageHandlerFactory.GetMessageHandler(message.channel);
            MessageHandlerResult handlerResult = handler.HandleMessage(message);

            foreach (Message eachMessage in handlerResult.Message)
            {
                this.response.Add(eachMessage);
            }
            this.ShouldSendResultStraightBackToClient |= !handlerResult.ShouldWait;
        }