Пример #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>());
 }