protected override void ConfigureInputQueueEndpoint(IInMemoryReceiveEndpointConfigurator configurator) { var sagaRepository = new InMemorySagaRepository<RegisterUserSaga>(); configurator.Saga(sagaRepository); configurator.Handler<SendUserVerificationEmail>(async x => { await Bus.Publish(new UserVerificationEmailSent(x.Message.CorrelationId, x.Message.Email)); }); }
protected override void ConfigureInputQueueEndpoint(IInMemoryReceiveEndpointConfigurator configurator) { configurator.Saga(_sagaRepository.Value); }
protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator) { configurator.Saga(_sagaRepository.Value); }
protected override void ConfigureInputQueueEndpoint(IInMemoryReceiveEndpointConfigurator configurator) { configurator.UseRetry(Retry.Immediate(2)); configurator.Saga(_repository); }
protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator) { configurator.Saga(_repository, x => x.UseExecute(context => context.Saga.Dependency = _dependency)); }
protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator) { configurator.Saga <SimpleSaga>(_container); }
protected override void ConfigureInputQueueEndpoint(IInMemoryReceiveEndpointConfigurator configurator) { configurator.UseRetry(Retry.Immediate(2)); configurator.Saga(_repository); }
protected override void ConfigureInputQueueEndpoint(IInMemoryReceiveEndpointConfigurator configurator) { configurator.Saga(_repository); }