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()));
            });
        }
            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);
            }
Beispiel #3
0
 protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator)
 {
     configurator.UseInMemoryOutbox();
     configurator.ConfigureSaga <TestInstance>(_provider.GetRequiredService <IBusRegistrationContext>());
 }
Beispiel #4
0
 protected override void ConfigureSagaStateMachine(IInMemoryReceiveEndpointConfigurator configurator)
 {
     configurator.ConfigureSaga <TestInstance>(_container);
 }
 protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator)
 {
     configurator.ConfigureSaga <TestInstance>(_container.Resolve <IBusRegistrationContext>());
 }
Beispiel #6
0
 protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator)
 {
     configurator.UseInMemoryOutbox();
     configurator.ConfigureSaga <TestInstance>(_provider);
 }
 protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator)
 {
     configurator.UseMessageRetry(r => r.Immediate(5));
     configurator.UseInMemoryOutbox();
     configurator.ConfigureSaga <TestInstance>(_provider);
 }
 protected override void ConfigureSaga(IInMemoryReceiveEndpointConfigurator configurator)
 {
     configurator.ConfigureSaga <SimpleSaga>(_container);
 }
Beispiel #9
0
 protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator)
 {
     configurator.ConfigureSaga <SimpleSaga>(Registration);
 }
 protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator)
 {
     configurator.ConfigureSaga <TestInstance>(Registration);
 }
Beispiel #11
0
 protected override void ConfigureInMemoryReceiveEndpoint(IInMemoryReceiveEndpointConfigurator configurator)
 {
     configurator.UseMessageRetry(r => r.Immediate(5));
     configurator.UseInMemoryOutbox();
     configurator.ConfigureSaga <TestInstance>(_provider.GetRequiredService <IRiderRegistrationContext>());
 }