Exemple #1
0
        private void RouteMessage(NSQMessage result)
        {
            if (result == null)
            {
                return;
            }

            if (result.Body.Equals(NSQResponseString.HEARTBEAT))
            {
                NOP();
            }
            else if (result.FrameType == FrameType.Message)
            {
                SignalMessageRecievedEvent(new NSQMessageEventArgs()
                {
                    Message = result
                });
            }
        }
Exemple #2
0
 public NSQMessageEventArgs(NSQMessage message)
     : base()
 {
     this.Message = message;
 }
Exemple #3
0
        private void RouteMessage(NSQMessage result)
        {
            if (result == null)
                return;

            if (result.Body.Equals(NSQResponseString.HEARTBEAT))
            {
                NOP();
            }
            else if (result.FrameType == FrameType.Message)
            {
                SignalMessageRecievedEvent(new NSQMessageEventArgs() { Message = result });
            }
        }
Exemple #4
0
 public NSQMessageEventArgs(NSQMessage message)
     : base()
 {
     this.Message = message;
 }