public ProducerRequest BuildSendRequestMessage(string topic, byte[] body, Guid senderId, ProducerRequestType requestType) { if (string.IsNullOrEmpty(topic)) { throw new ArgumentNullException("topic value not allow be null"); } if (senderId == Guid.Empty) { throw new ArgumentNullException("sender id not allow be null"); } return(new ProducerRequest(topic, body, senderId, requestType)); }
private ProducerRequest CreateRequestByRequestType(ProducerRequestType requestType) { return(ProducerMessageBuilder.BuildSendRequestMessage(base.CurrentTopic, _currentBody, this.ClientId, requestType)); }
public ProducerRequest(string topic, byte[] body, Guid senderId, ProducerRequestType requestType) : base(topic, body, senderId) { this.MessageType = requestType.ToString(); }