public void MoveToErrors(ErrorReport report) { var messagePayload = new MessagePayload { Data = report.Serialize(), Headers = report.Headers }; messagePayload.Headers.Add("ExceptionType", report.ExceptionType); _transaction.EnqueueDirectlyTo(LightningQueuesTransport.ErrorQueueName, messagePayload, _message.Id); MarkSuccessful(); }
public void MoveToErrors(ErrorReport report) { var message = new Message { Id = _message.Id, Data = report.Serialize(), //Headers = report.Headers }; message.Headers.Add("ExceptionType", report.ExceptionType); message.Queue = LightningQueuesTransport.ErrorQueueName; _context.Enqueue(message); MarkSuccessful(); }