Beispiel #1
0
        public async Task Handle(AddUserFinished parameter)
        {
            if (parameter == null)
            {
                throw new ArgumentNullException(nameof(parameter));
            }

            await AddEvent(parameter.Id, parameter.ProcessId, parameter.Payload, "Finish add user", parameter.Order, "add_user_finished");
        }
Beispiel #2
0
 public void Handle(AddUserFinished evt)
 {
     _repository.Add(new Core.Models.EventAggregate
     {
         Id          = evt.Id,
         AggregateId = evt.ProcessId,
         Description = "Finish add user",
         CreatedOn   = DateTime.UtcNow,
         Order       = evt.Order,
         Type        = evt.ServerName,
         Verbosity   = Core.Models.EventVerbosities.Information,
         Key         = "add_user_finished",
     }).Wait();
 }