示例#1
0
        protected BaseCustomerEventHandler(ICommandStackDatabase database)
        {
            if (database == null)
            {
                throw new ArgumentNullException($"Database was not initialized");
            }

            this.Database = database;
        }
示例#2
0
        public AccountLockedEventHandler(ICommandStackDatabase database, ICommandStackRepository <AccountDomainModel> repository)
            : base(database)
        {
            if (repository == null)
            {
                throw new InvalidOperationException("Repository is not initialized.");
            }

            this._repository = repository;
        }
示例#3
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;
        }
示例#5
0
 public NEventStoreCommandStackRepository(IStoreEvents eventStore, ICommandStackDatabase database)
 {
     this._eventStore = eventStore;
     this._database   = database;
 }
 public CustomerCreatedEventHandler(ICommandStackDatabase database)
     : base(database)
 {
 }
 public AccountAddedEventHandler(ICommandStackDatabase database)
     : base(database)
 {
 }