Ejemplo n.º 1
0
        protected async Task processCommand(ExtendEvento command)
        {
            var evento = await base.repository.Get(command.Id) as Evento;

            evento.ExtendEvento(command.extendedTime);
            await repository.Save(evento);
        }
Ejemplo n.º 2
0
        protected async Task ProcessCommand(ExtendEvento command)
        {
            if (command == null)
            {
                throw new ArgumentNullException(nameof(command));
            }

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

            evento.ExtendEvento(command.ExtendedTime);
            await Repository.Save(evento);
        }
        protected async Task ProcessCommand(ExtendEvento command)
        {
            if (command == null)
            {
                throw new ArgumentNullException(nameof(command));
            }

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

            evento.ExtendEvento(command.ExtendedTime);
            await NonEventSourceRepository.UpdateEventEndDate(evento.Id, evento.EndTime);
        }
Ejemplo n.º 4
0
        protected async Task ProcessCommand(ExtendEvento command)
        {
            if (command == null)
            {
                throw new ArgumentNullException(nameof(command));
            }

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

            evento.ExtendEvento(command.ExtendedTime);
            await NonEventSourceRepository.UpdateEvent(evento);

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