protected override void ConfigureInputQueueEndpoint(IInMemoryReceiveEndpointConfigurator configurator) { _machine = new SuperShopper(); configurator.UseRetry(Retry.Selected <DbUpdateException>().Immediate(5)); configurator.StateMachineSaga(_machine, _repository.Value); configurator.TransportConcurrencyLimit = 16; }
protected override void ConfigureInputQueueEndpoint(IInMemoryReceiveEndpointConfigurator configurator) { _machine = new SuperShopper(); _sessionFactory = new SQLiteSessionFactoryProvider(typeof(ShoppingChoreMap)) .GetSessionFactory(); _repository = new NHibernateSagaRepository <ShoppingChore>(_sessionFactory); configurator.StateMachineSaga(_machine, _repository); }
protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator) { _machine = new SuperShopper(); configurator.UseRetry(x => { x.Handle <DbUpdateException>(); x.Immediate(5); }); configurator.StateMachineSaga(_machine, _repository.Value); }
protected override void ConfigureInputQueueEndpoint(IInMemoryReceiveEndpointConfigurator configurator) { _machine = new SuperShopper(); configurator.StateMachineSaga(_machine, _repository.Value); }