Ejemplo n.º 1
0
        protected BaseAccountCommandHandler(ICommandStackRepository <Domain.AccountDomainModel> repository)
        {
            if (repository == null)
            {
                throw new InvalidOperationException("Repository is not initialized.");
            }

            this.Repository = repository;
        }
Ejemplo n.º 2
0
        public ContactChangedEventHandler(ICommandStackRepository <Domain.CustomerDomainModel> repository, ICommandStackDatabase database)
            : base(database)
        {
            if (repository == null)
            {
                throw new InvalidOperationException("Repository is not initialized.");
            }

            this._repository = repository;
        }
        public BalanceChangedEventHandler(ICommandStackRepository <Domain.AccountDomainModel> repository, ICommandStackDatabase database)
            : base(database)
        {
            if (repository == null)
            {
                throw new ArgumentNullException($"Repository was not initialized");
            }

            this._repository = repository;
        }
Ejemplo n.º 4
0
        public AccountLockedEventHandler(ICommandStackDatabase database, ICommandStackRepository <AccountDomainModel> repository)
            : base(database)
        {
            if (repository == null)
            {
                throw new InvalidOperationException("Repository is not initialized.");
            }

            this._repository = repository;
        }
Ejemplo n.º 5
0
        protected Saga(
            IBus bus, 
            ICommandStackRepository repository)
        {
            if (bus == null)
            {
                throw new ArgumentNullException($"bus");
            }

            if (repository == null)
            {
                throw new ArgumentNullException($"repository");
            }

            this.Bus = bus;
            this.Repository = repository;
        }
Ejemplo n.º 6
0
        protected Saga(
            IBus bus,
            ICommandStackRepository repository)
        {
            if (bus == null)
            {
                throw new ArgumentNullException($"bus");
            }

            if (repository == null)
            {
                throw new ArgumentNullException($"repository");
            }

            this.Bus        = bus;
            this.Repository = repository;
        }
 public MoneyTransferSaga(IBus bus, ICommandStackRepository repository)
     : base(bus, repository)
 {
 }
Ejemplo n.º 8
0
 public UnlockAccountCommandHandler(ICommandStackRepository <Domain.AccountDomainModel> repository)
     : base(repository)
 {
 }
Ejemplo n.º 9
0
 public ChangePersonDetailsCommandHandler(ICommandStackRepository <Domain.CustomerDomainModel> repository)
     : base(repository)
 {
 }
Ejemplo n.º 10
0
 public ChangeAddressDetailsSaga(
     IBus bus,
     ICommandStackRepository repository)
     : base(bus, repository)
 {
 }
Ejemplo n.º 11
0
 public ChangeBalanceCommandHandler(ICommandStackRepository <Domain.AccountDomainModel> repository) : base(repository)
 {
 }
Ejemplo n.º 12
0
 public DeleteCustomerSaga(
     IBus bus,
     ICommandStackRepository repository)
     : base(bus, repository)
 {
 }
Ejemplo n.º 13
0
 public CreateCustomerCommandHandler(ICommandStackRepository <Domain.CustomerDomainModel> repository)
     : base(repository)
 {
 }
Ejemplo n.º 14
0
 public AccountSaga(IBus bus, ICommandStackRepository repository)
     : base(bus, repository)
 {
 }
 public ChangeContactDetailsSaga(
     IBus bus,
     ICommandStackRepository repository)
     : base(bus, repository)
 {
 }
 public AddAccountCommandHandler(ICommandStackRepository <CustomerDomainModel> repository)
     : base(repository)
 {
 }