protected override void ConfigureInputQueueEndpoint(IInMemoryReceiveEndpointConfigurator configurator) { _bookingRequestSagaRepository = new InMemorySagaRepository<BookingRequestState>(); _bookingRequestStateMachine = new BookingRequestStateMachine(); configurator.StateMachineSaga(_bookingRequestStateMachine, _bookingRequestSagaRepository); }
protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator) { base.ConfigureInMemoryReceiveEndpoint(configurator); _repository = new InMemorySagaRepository <Instance>(); _machine = new DeadlockStateMachine(); configurator.StateMachineSaga(_machine, _repository); }
protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator) { _machine = new TestStateMachine(); _repository = new InMemorySagaRepository <Instance>(); configurator.UseInMemoryOutbox(); configurator.StateMachineSaga(_machine, _repository); }
protected override void ConfigureInputQueueEndpoint(IInMemoryReceiveEndpointConfigurator configurator) { base.ConfigureInputQueueEndpoint(configurator); _repository = new InMemorySagaRepository <TransactionState>(); _machine = new TransactionStateMachine(); configurator.StateMachineSaga(_machine, _repository); }
protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator) { _machine = new SuperShopper(); configurator.UseRetry(x => { x.Immediate(5); }); configurator.StateMachineSaga(_machine, _repository.Value); }
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 TestStateMachine(); _sessionFactory = new SQLiteSessionFactoryProvider(typeof(InstanceMap)) .GetSessionFactory(); _repository = NHibernateSagaRepository <Instance> .Create(_sessionFactory); configurator.StateMachineSaga(_machine, _repository); }
protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator) { _provider = new SQLiteSessionFactoryProvider(false, typeof(MissingInstanceMap)); _sessionFactory = _provider.GetSessionFactory(); _sagaRepository = new Lazy <ISagaRepository <MissingInstance> >(() => new NHibernateSagaRepository <MissingInstance>(_sessionFactory)); _machine = new TestStateMachine(); configurator.StateMachineSaga(_machine, _sagaRepository.Value); }
protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator) { _machine = new ChoirStateMachine(); configurator.UseRetry(x => { x.Handle <DbUpdateConcurrencyException>(); x.Immediate(5); }); configurator.StateMachineSaga(_machine, _repository.Value); }
protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator) { _machine = new ChoirStateMachine(); configurator.UseRetry(x => { x.Handle <DocumentDbConcurrencyException>(); x.Interval(5, 300); }); configurator.StateMachineSaga(_machine, _repository.Value); }
protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator) { base.ConfigureInMemoryReceiveEndpoint(configurator); _repository = new InMemorySagaRepository <TestState>(); _machine = new TestStateMachine(); configurator.StateMachineSaga(_machine, _repository); _rescheduled = Handled <MessageRescheduled>(configurator); }
protected override void ConfigureInputQueueEndpoint(IInMemoryReceiveEndpointConfigurator configurator) { base.ConfigureInputQueueEndpoint(configurator); _repository = new InMemorySagaRepository <TransactionState>(); _machine = new TransactionStateMachine(); configurator.StateMachineSaga(_machine, _repository, x => { x.ConfigureMessage <BeginTransaction>(m => m.UsePartitioner(4, p => p.Message.TransactionId)); }); }
protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator) { _repository = new InMemorySagaRepository <Instance>(); configurator.StateMachineSaga(new TestStateMachine(), _repository, cfg => { cfg.Message <CreateSaga>(m => m.UsePartitioner(4, p => p.Message.CorrelationId)); cfg.SagaMessage <CreateSaga>(m => m.Message(mx => mx.UseExecute(context => { }))); }); }
protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator) { base.ConfigureInMemoryReceiveEndpoint(configurator); _repository = new InMemorySagaRepository <TestState>(); var settings = new RequestSettingsImpl(ServiceQueueAddress, HangfireAddress, TestTimeout); _machine = new TestStateMachine(settings); configurator.StateMachineSaga(_machine, _repository); }
protected override void ConfigureInputQueueEndpoint(IInMemoryReceiveEndpointConfigurator configurator) { base.ConfigureInputQueueEndpoint(configurator); _repository = new InMemorySagaRepository <Request_Specs.TestState>(); var settings = new RequestSettingsImpl(ServiceQueueAddress, QuartzQueueAddress, TimeSpan.FromSeconds(1)); _machine = new TestStateMachine(settings); configurator.StateMachineSaga(_machine, _repository); }
protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator) { _machine = new TestStateMachine(); _repository = new InMemorySagaRepository <Instance>(); configurator.UseRetry(x => { x.Ignore <NotSupportedException>(); x.Immediate(2); }); 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); configurator.TransportConcurrencyLimit = 16; }
protected override void ConfigureInputQueueEndpoint(IInMemoryReceiveEndpointConfigurator configurator) { _message = GetTask <Start>(); _consumerOnly = GetTask <Instance>(); _consumerMessage = GetTask <Tuple <Instance, Start> >(); _repository = new InMemorySagaRepository <Instance>(); configurator.StateMachineSaga(new TestStateMachine(), _repository, cfg => { cfg.UseExecute(context => _consumerOnly.TrySetResult(context.Saga)); cfg.Message <Start>(m => m.UseExecute(context => _message.TrySetResult(context.Message))); cfg.ConsumerMessage <Start>(m => m.UseExecute(context => _consumerMessage.TrySetResult(Tuple.Create(context.Saga, context.Message)))); }); }
protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator) { _machine = new TestStateMachine(); _repository = new InMemorySagaRepository <Instance>(); configurator.StateMachineSaga(_machine, _repository, x => { IPipe <ExceptionSagaConsumeContext <Instance> > rescuePipe = Pipe.New <ExceptionSagaConsumeContext <Instance> >(p => { p.UseExecuteAsync(async context => { await _machine.RaiseEvent(context.Saga, e => e.InlineStartFaulted, new StartFault(context.Saga.CorrelationId)); }); }); x.UseRescue(rescuePipe); }); }
protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator) { _discarded = GetTask <bool>(); _simpleStateMachine = new SimpleStateMachine(x => { _discarded.TrySetResult(true); }); _sagaDbContextFactory = () => new SagaDbContext <SimpleState, SimpleStateMap>(SagaDbContextFactoryProvider.GetLocalDbConnectionString()); _simpleStateRepository = new Lazy <ISagaRepository <SimpleState> >(() => new EntityFrameworkSagaRepository <SimpleState>(_sagaDbContextFactory)); configurator.StateMachineSaga(_simpleStateMachine, _simpleStateRepository.Value); base.ConfigureInMemoryReceiveEndpoint(configurator); }
protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator) { _discarded = GetTask <bool>(); _simpleStateMachine = new SimpleStateMachine(x => { _discarded.TrySetResult(true); }); _sagaDbContextFactory = new DelegateSagaDbContextFactory(() => new SimpleStateSagaDbContext(SagaDbContextFactoryProvider.GetLocalDbConnectionString())); _simpleStateRepository = new Lazy <ISagaRepository <SimpleState> >(() => new EntityFrameworkSagaRepository <SimpleState>(_sagaDbContextFactory, System.Data.IsolationLevel.Serializable, new MsSqlLockStatements())); configurator.StateMachineSaga(_simpleStateMachine, _simpleStateRepository.Value); base.ConfigureInMemoryReceiveEndpoint(configurator); }
protected override void ConfigureInputQueueEndpoint(IInMemoryReceiveEndpointConfigurator configurator) { base.ConfigureInputQueueEndpoint(configurator); _repository = new InMemorySagaRepository<Request_Specs.TestState>(); var settings = new RequestSettingsImpl(ServiceQueueAddress, QuartzQueueAddress, TimeSpan.FromSeconds(1)); _machine = new TestStateMachine(settings); configurator.StateMachineSaga(_machine, _repository); }
protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator) { configurator.StateMachineSaga(_machine, _repository); }
protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator) { _machine = new ChoirStateMachine(); configurator.StateMachineSaga(_machine, _repository.Value); }
protected override void ConfigureInputQueueEndpoint(IInMemoryReceiveEndpointConfigurator configurator) { _machine = new TestStateMachine(); configurator.StateMachineSaga(_machine, _repository); }
private void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator) { configurator.StateMachineSaga(_stateMachine, _sagaRepository); }
protected override void ConfigureInputQueueEndpoint(IInMemoryReceiveEndpointConfigurator configurator) { _machine = new SuperShopper(); configurator.StateMachineSaga(_machine, _repository.Value); }
protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator) { _machine = new ReadOnlyStateMachine(); configurator.StateMachineSaga(_machine, CreateSagaRepository()); }