public async Task Handle(ArchiveData message, IMessageHandlerContext context) { _logger.Info($"{message.Orders.Count()} purcharse orders archived in this process {message.Id}"); if (null != _dbHelper) { await _dbHelper.Insert(message.Orders); } var @event = new DataArchived { Id = message.Id }; await context.Publish(@event); }
public Task Handle(DataArchived message, IMessageHandlerContext context) { _logger.Info($"{message.Id} completed."); MarkAsComplete(); return(Task.CompletedTask); }