예제 #1
0
        protected override void ConfigureInputQueueEndpoint(IInMemoryReceiveEndpointConfigurator configurator)
        {
            _machine = new SuperShopper();

            configurator.UseRetry(Retry.Selected <DbUpdateException>().Immediate(5));
            configurator.StateMachineSaga(_machine, _repository.Value);

            configurator.TransportConcurrencyLimit = 16;
        }
예제 #2
0
        protected override void ConfigureInputQueueEndpoint(IInMemoryReceiveEndpointConfigurator configurator)
        {
            _machine = new SuperShopper();

            _sessionFactory = new SQLiteSessionFactoryProvider(typeof(ShoppingChoreMap))
                              .GetSessionFactory();
            _repository = new NHibernateSagaRepository <ShoppingChore>(_sessionFactory);

            configurator.StateMachineSaga(_machine, _repository);
        }
예제 #3
0
        protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator)
        {
            _machine = new SuperShopper();

            configurator.UseRetry(x =>
            {
                x.Handle <DbUpdateException>();
                x.Immediate(5);
            });
            configurator.StateMachineSaga(_machine, _repository.Value);
        }
예제 #4
0
        protected override void ConfigureInputQueueEndpoint(IInMemoryReceiveEndpointConfigurator configurator)
        {
            _machine = new SuperShopper();

            configurator.StateMachineSaga(_machine, _repository.Value);
        }