Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public Task Handle(DataArchived message, IMessageHandlerContext context)
 {
     _logger.Info($"{message.Id} completed.");
     MarkAsComplete();
     return(Task.CompletedTask);
 }