Пример #1
0
        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);
        }
Пример #2
0
        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);
        }
Пример #3
0
 protected async Task processCommand(CreateEvento command)
 {
     var engazeEvent = new Evento(command.Id, command.EventoContract);
     await repository.Save(engazeEvent);
 }