コード例 #1
0
        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));
            });
        }
コード例 #2
0
 protected override void ConfigureInputQueueEndpoint(IInMemoryReceiveEndpointConfigurator configurator)
 {
     configurator.Saga(_sagaRepository.Value);
 }
コード例 #3
0
 protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator)
 {
     configurator.Saga(_sagaRepository.Value);
 }
コード例 #4
0
 protected override void ConfigureInputQueueEndpoint(IInMemoryReceiveEndpointConfigurator configurator)
 {
     configurator.UseRetry(Retry.Immediate(2));
     configurator.Saga(_repository);
 }
コード例 #5
0
ファイル: Injecting_Specs.cs プロジェクト: zpavic/MassTransit
 protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator)
 {
     configurator.Saga(_repository, x => x.UseExecute(context => context.Saga.Dependency = _dependency));
 }
コード例 #6
0
 protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator)
 {
     configurator.Saga <SimpleSaga>(_container);
 }
コード例 #7
0
 protected override void ConfigureInputQueueEndpoint(IInMemoryReceiveEndpointConfigurator configurator)
 {
     configurator.UseRetry(Retry.Immediate(2));
     configurator.Saga(_repository);
 }
コード例 #8
0
 protected override void ConfigureInputQueueEndpoint(IInMemoryReceiveEndpointConfigurator configurator)
 {
     configurator.Saga(_repository);
 }