Beispiel #1
0
        private ConsumerRequest CreateRequestByRequestType(ConsumerRequestType requestType)
        {
            var consumeRequest = this
                                 .ConsumeMessageBuilder
                                 .BuildConsumerRequestMessage(base.CurrentTopic, _currentBody, this.ClientId, requestType);

            return(consumeRequest);
        }
Beispiel #2
0
 public ConsumerRequest(string topic, byte[] body, Guid senderId, ConsumerRequestType requestType)
     : base(topic, body, senderId)
 {
     this.MessageType = requestType.ToString();
 }
Beispiel #3
0
 public virtual ConsumerRequest BuildConsumerRequestMessage(string topic, byte[] body, Guid senderId, ConsumerRequestType requestType)
 {
     if (string.IsNullOrEmpty(topic))
     {
         throw new ArgumentNullException("topic null");
     }
     if (senderId == Guid.Empty)
     {
         throw new ArgumentException("senderid null");
     }
     return(new ConsumerRequest(topic, body, senderId, requestType));
 }