コード例 #1
0
        protected async Task processCommand(UpdateParticipantList command)
        {
            var evento = await base.repository.Get(command.Id) as Evento;

            evento.UpdateParticipantList(command.ParticipantList);
            await repository.Save(evento);
        }
コード例 #2
0
        protected async Task ProcessCommand(UpdateParticipantList command)
        {
            if (command == null)
            {
                throw new ArgumentNullException(nameof(command));
            }

            var evento = await Repository.Get(command.Id) as Evento;

            evento.UpdateParticipantList(command.ParticipantList);
            await Repository.Save(evento);
        }
コード例 #3
0
        protected async Task ProcessCommand(UpdateParticipantList command)
        {
            if (command == null)
            {
                throw new ArgumentNullException(nameof(command));
            }

            var evento = (await NonEventSourceRepository.GetEvent(command.Id)).ToDomainEvent();

            evento.UpdateParticipantList(command.ParticipantList);
            await NonEventSourceRepository.SaveEvent(evento);
        }
コード例 #4
0
        protected async Task ProcessCommand(UpdateParticipantList command)
        {
            if (command == null)
            {
                throw new ArgumentNullException(nameof(command));
            }

            var evento = (await NonEventSourceRepository.GetEvent(command.Id)).ToDomainEvent();

            evento.UpdateParticipantList(command.ParticipantList);
            await NonEventSourceRepository.UpdateEvent(evento, true);

            await notificationManager.NotifyParticipantsAsync((Notification.EventWithUserIds) evento.ToDataContractEvent(), Engaze.Core.DataContract.OccuredEventType.ParticipantsListUpdated);
        }