예제 #1
0
            protected override void ConfigureServiceBusReceiveEndpoint(IServiceBusReceiveEndpointConfigurator configurator)
            {
                configurator.RequiresSession    = true;
                configurator.EnablePartitioning = true;

                configurator.UseInMemoryOutbox();
                configurator.ConfigureSaga <TestInstance>(_provider.GetRequiredService <IBusRegistrationContext>());
            }
예제 #2
0
        protected override void ConfigureServiceBusReceiveEndpoint(IServiceBusReceiveEndpointConfigurator configurator)
        {
            configurator.UseDelayedRedelivery(r => r.Interval(1, TimeSpan.FromMilliseconds(100)));
            configurator.UseRetry(r => r.Interval(1, TimeSpan.FromMilliseconds(100)));
            configurator.UseInMemoryOutbox();

            configurator.Consumer <TestHandler>();
        }