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"); }
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(); }