public async Task Handle(PatchGroupFinished parameter)
        {
            if (parameter == null)
            {
                throw new ArgumentNullException(nameof(parameter));
            }

            await AddEvent(parameter.Id, parameter.ProcessId, parameter.Payload, "Finish to patch group", parameter.Order, "patch_group_finished");
        }
Exemplo n.º 2
0
 public void Handle(PatchGroupFinished evt)
 {
     _repository.Add(new Core.Models.EventAggregate
     {
         Id          = evt.Id,
         AggregateId = evt.ProcessId,
         Description = "Finish to patch group",
         CreatedOn   = DateTime.UtcNow,
         Order       = evt.Order,
         Type        = evt.ServerName,
         Verbosity   = Core.Models.EventVerbosities.Information,
         Key         = "patch_group_finished",
     }).Wait();
 }