public async Task Timeout(ProcessPaymentTimeout state, IMessageHandlerContext context) { if (String.IsNullOrEmpty(Data.Status)) { log.Info("Handle Timeout for " + Data.ReferenceId); var reply = Mapper.Map <ProcessPaymentReply>(Data); reply.Status = "Pending"; reply.StatusDate = DateTime.UtcNow; await ReplyToOriginator(context, reply); } }
public async Task Handle(ProcessPaymentTimeout state) { if (String.IsNullOrEmpty(Data.Status)) { _logger.LogInformation("Handle Timeout for " + Data.ReferenceId); var reply = _mapper.Map <ProcessPaymentReply>(Data); reply.Status = "Pending"; reply.StatusDate = DateTime.UtcNow; _logger.LogInformation("correlationid" + Data.Id); await _bus.Advanced.Routing.Send(Data.Originator, reply, new Dictionary <string, string> { { Headers.InReplyTo, Data.OriginatorId } }); } }