예제 #1
0
        protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator)
        {
            configurator.ConfigureSaga <TestInstance>(Registration, x =>
            {
                x.Message <StartTest>(m => m.UseFilter(CreateMessageFilter()));

                x.UseFilter(CreateSagaFilter());

                x.SagaMessage <StartTest>(m => m.UseFilter(CreateSagaMessageFilter()));
            });
        }
예제 #2
0
            protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator)
            {
                configurator.UseMessageRetry(r => r.Immediate(5));

                // TODO figure out why Postgres locking isn't working :(
                if (DbContextOptionsBuilder.Options.Extensions.Any(x => x is NpgsqlOptionsExtension))
                {
                    configurator.UseInMemoryOutbox();
                }

                configurator.ConfigureSaga <TestInstance>(_provider);
            }
예제 #3
0
 protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator)
 {
     configurator.UseInMemoryOutbox();
     configurator.ConfigureSaga <TestInstance>(_provider.GetRequiredService <IBusRegistrationContext>());
 }
예제 #4
0
 protected override void ConfigureSagaStateMachine(IInMemoryReceiveEndpointConfigurator configurator)
 {
     configurator.ConfigureSaga <TestInstance>(_container);
 }
예제 #5
0
 protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator)
 {
     configurator.ConfigureSaga <TestInstance>(_container.Resolve <IBusRegistrationContext>());
 }
예제 #6
0
 protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator)
 {
     configurator.UseInMemoryOutbox();
     configurator.ConfigureSaga <TestInstance>(_provider);
 }
예제 #7
0
 protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator)
 {
     configurator.UseMessageRetry(r => r.Immediate(5));
     configurator.UseInMemoryOutbox();
     configurator.ConfigureSaga <TestInstance>(_provider);
 }
예제 #8
0
 protected override void ConfigureSaga(IInMemoryReceiveEndpointConfigurator configurator)
 {
     configurator.ConfigureSaga <SimpleSaga>(_container);
 }
예제 #9
0
 protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator)
 {
     configurator.ConfigureSaga <SimpleSaga>(Registration);
 }
예제 #10
0
 protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator)
 {
     configurator.ConfigureSaga <TestInstance>(Registration);
 }
예제 #11
0
 protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator)
 {
     configurator.UseMessageRetry(r => r.Immediate(5));
     configurator.UseInMemoryOutbox();
     configurator.ConfigureSaga <TestInstance>(_provider.GetRequiredService <IRiderRegistrationContext>());
 }