public void Register(IDomainBuilder builder)
            {
                var dep     = new Dependency(10);
                var factory = DefaultAggregateDependencyFactory.ForCommandAggregate <AggregateWithDependency>(new CustomAggregateFactory(dep));

                builder.RegisterAggregate(factory);
            }
Esempio n. 2
0
        public void Register(IDomainBuilder builder)
        {
            var provider         = new BitCoinUsdPriceProvider();
            var aggregateFactory = DefaultAggregateDependencyFactory.ForCommandAggregate <BinaryOptionGame>();

            aggregateFactory.AggregateFactoryCreator = () => new BinaryOptionsAggregateConstructor(provider);
            builder.RegisterAggregate <BinaryOptionGame>();
        }
        public void Register(IDomainBuilder builder)
        {
            var commandHandler             = new TestAggregatesCommandHandler(new TestDependencyImplementation());
            var aggregateDependencyFactory = DefaultAggregateDependencyFactory.New(commandHandler);

            aggregateDependencyFactory.AggregateFactoryCreator = () => new TestAggregateFactory(new TestDependencyImplementation());
            aggregateDependencyFactory.SnapshotsFactoryCreator = () => new TestAggregateFactory(new TestDependencyImplementation());
            builder.RegisterAggregate(aggregateDependencyFactory);
        }
Esempio n. 4
0
 public void Register(IDomainBuilder builder)
 {
     builder.RegisterAggregate(DefaultAggregateDependencyFactory.New(new TestAggregateCommandHandler()));
 }
        public void Register(IDomainBuilder builder)
        {
            var factory = new DefaultAggregateDependencyFactory <TestFutureEventsAggregate>(() => new FutureEventsAggregatesCommandHandler());

            builder.RegisterAggregate(factory);
        }
Esempio n. 6
0
 public void Register(IDomainBuilder builder)
 {
     builder.RegisterAggregate(DefaultAggregateDependencyFactory.New(new SkuCommandsHandler(_sequenceProvider)));
 }
Esempio n. 7
0
 public BalanceDomainDonfiguration()
 {
     DefaultAggregateDependencyFactory = Configuration.DefaultAggregateDependencyFactory.New(new BalanceAggregatesCommandHandler());
 }
Esempio n. 8
0
 public void Register(IDomainBuilder builder)
 {
     builder.RegisterAggregate(DefaultAggregateDependencyFactory.New <Account, AccountCommandsHandler>());
 }