public async Task Handle(PatchUserReceived parameter) { if (parameter == null) { throw new ArgumentNullException(nameof(parameter)); } await AddEvent(parameter.Id, parameter.ProcessId, parameter.Payload, "Start to patch user", parameter.Order, "patch_user_started"); }
public void Handle(PatchUserReceived evt) { _repository.Add(new Core.Models.EventAggregate { Id = evt.Id, AggregateId = evt.ProcessId, Description = "Start to patch user", CreatedOn = DateTime.UtcNow, Order = evt.Order, Type = evt.ServerName, Verbosity = Core.Models.EventVerbosities.Information, Key = "patch_user_started", }).Wait(); }