Beispiel #1
0
 public static ReplyMessage Success(RequestMessage request)
 {
     if (request == null) throw new ArgumentNullException("request");
     return new ReplyMessage()
     {
         CorrelationId = request.CorrelationId,
         Direction = request.Direction.Revert(),
         Event = request.Event,
         Status = MessageStatus.Success,
         Environment = request.Environment,
         Application = request.Application,
         Version = request.Version,
         Owner = request.Owner,
         TimeStamp = DateTime.UtcNow,
     };
 }
Beispiel #2
0
 public RequestException(string message, RequestMessage request, Exception innerException)
     : base(message, innerException)
 {
     if (request == null) throw new ArgumentNullException("request");
     Request = request;
 }
Beispiel #3
0
 public InvalidRequestException(string message, RequestMessage request, Exception innerException)
     : base(message, request, innerException)
 {
 }
Beispiel #4
0
 public InvalidRequestException(string message, RequestMessage request)
     : base(message, request)
 {
 }
Beispiel #5
0
 public IgnoreRequestException(string message, RequestMessage request)
     : base(message, request)
 {
 }
Beispiel #6
0
 public DuplicateRequestException(string message, RequestMessage request, Exception innerException)
     : base(message, request, innerException)
 {
 }
Beispiel #7
0
 public DuplicateRequestException(string message, RequestMessage request)
     : base(message, request)
 {
 }
 public void Send(RequestMessage request)
 {
     if (request == null) throw new ArgumentNullException("request");
     Dispatchers.Outgoing.Push(request);
 }