Ejemplo n.º 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,
     };
 }
Ejemplo n.º 2
0
 public RequestException(string message, RequestMessage request, Exception innerException)
     : base(message, innerException)
 {
     if (request == null) throw new ArgumentNullException("request");
     Request = request;
 }
Ejemplo n.º 3
0
 public InvalidRequestException(string message, RequestMessage request, Exception innerException)
     : base(message, request, innerException)
 {
 }
Ejemplo n.º 4
0
 public InvalidRequestException(string message, RequestMessage request)
     : base(message, request)
 {
 }
Ejemplo n.º 5
0
 public IgnoreRequestException(string message, RequestMessage request)
     : base(message, request)
 {
 }
Ejemplo n.º 6
0
 public DuplicateRequestException(string message, RequestMessage request, Exception innerException)
     : base(message, request, innerException)
 {
 }
Ejemplo n.º 7
0
 public DuplicateRequestException(string message, RequestMessage request)
     : base(message, request)
 {
 }
Ejemplo n.º 8
0
 public void Send(RequestMessage request)
 {
     if (request == null) throw new ArgumentNullException("request");
     Dispatchers.Outgoing.Push(request);
 }