Esempio n. 1
0
 public MessageConsumed(string topic,
                        string messageBody,
                        DateTime consumeTime)
 {
     Id          = IdentityUtility.NewGuidString();
     Topic       = topic;
     MessageBody = messageBody;
     ConsumeTime = consumeTime;
 }
Esempio n. 2
0
 public MessageHandle(string handleName,
                      string exception,
                      string consumeId)
 {
     Id         = IdentityUtility.NewGuidString();
     HandleName = handleName;
     Exception  = exception;
     ConsumeId  = consumeId;
 }
Esempio n. 3
0
 public MessagePublished(string producer,
                         string topic,
                         string messageBody,
                         DateTime publishTime,
                         string publishError)
 {
     Id           = IdentityUtility.NewGuidString();
     Producer     = producer;
     Topic        = topic;
     MessageBody  = messageBody;
     PublishTime  = publishTime;
     PublishError = publishError;
 }
Esempio n. 4
0
 public PublishContext(string topic,
                       object message,
                       string producer)
 {
     Topic       = topic;
     Message     = message;
     PublishTime = DateTime.Now;
     Producer    = producer;
     if (Message is AggregateRootEvent @event)
     {
         Key = @event.Key;
     }
     else
     {
         Key = IdentityUtility.NewGuidString();
     }
 }