protected async Task ProcessCommand(CreateEvento command) { if (command == null) { throw new ArgumentNullException(nameof(command)); } var engazeEvent = new Evento(command.Id, command.EventoContract); await Repository.Save(engazeEvent); }
protected async Task ProcessCommand(CreateEvento command) { if (command == null) { throw new ArgumentNullException(nameof(command)); } var engazeEvent = new Evento(command.Id, command.EventoContract); await NonEventSourceRepository.InsertAsync(engazeEvent); await notificationManager.NotifyParticipantsAsync((Notification.EventWithUserIds) command.EventoContract, Engaze.Core.DataContract.OccuredEventType.EventoCreated); }
protected async Task processCommand(CreateEvento command) { var engazeEvent = new Evento(command.Id, command.EventoContract); await repository.Save(engazeEvent); }