private ConsumerRequest CreateRequestByRequestType(ConsumerRequestType requestType) { var consumeRequest = this .ConsumeMessageBuilder .BuildConsumerRequestMessage(base.CurrentTopic, _currentBody, this.ClientId, requestType); return(consumeRequest); }
public ConsumerRequest(string topic, byte[] body, Guid senderId, ConsumerRequestType requestType) : base(topic, body, senderId) { this.MessageType = requestType.ToString(); }
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)); }