Esempio n. 1
0
 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));
 }
Esempio n. 2
0
 private ProducerRequest CreateRequestByRequestType(ProducerRequestType requestType)
 {
     return(ProducerMessageBuilder.BuildSendRequestMessage(base.CurrentTopic, _currentBody, this.ClientId, requestType));
 }
Esempio n. 3
0
 public ProducerRequest(string topic, byte[] body, Guid senderId, ProducerRequestType requestType)
     : base(topic, body, senderId)
 {
     this.MessageType = requestType.ToString();
 }