Beispiel #1
0
        protected override void ConfigureSaga(IReceiveEndpointConfigurator endpointConfigurator, ISagaConfigurator <PaymentInstance> sagaConfigurator)
        {
            sagaConfigurator.UseMessageRetry(r => r.Immediate(5));
            sagaConfigurator.UseInMemoryOutbox();

            //var partition = endpointConfigurator.CreatePartitioner(10);

            //sagaConfigurator.Message<IPaymentReceived>(x => x.UsePartitioner(partition, m => m.Message.PaymentId));
        }
Beispiel #2
0
        protected override void ConfigureSaga(IReceiveEndpointConfigurator endpointConfigurator, ISagaConfigurator <SmsState> sagaConfigurator)
        {
            var partition = endpointConfigurator.CreatePartitioner(16);

            sagaConfigurator.Message <SmsSubmit>(x => x.UsePartitioner(partition, m => m.Message.CorrelationId));
            sagaConfigurator.Message <SmsAccepted>(x => x.UsePartitioner(partition, m => m.Message.CorrelationId));
            // sagaConfigurator.Message<OrderCanceled>(x => x.UsePartitioner(partition, m => m.Message.CorrelationId));
            sagaConfigurator.UseInMemoryOutbox();
        }
        protected override void ConfigureSaga(IReceiveEndpointConfigurator endpointConfigurator, ISagaConfigurator <BatchState> sagaConfigurator)
        {
            sagaConfigurator.UseMessageRetry(r => r.Immediate(5));
            sagaConfigurator.UseInMemoryOutbox();

            var partition = endpointConfigurator.CreatePartitioner(8);

            sagaConfigurator.Message <BatchJobDone>(x => x.UsePartitioner(partition, m => m.Message.BatchId));
            sagaConfigurator.Message <BatchReceived>(x => x.UsePartitioner(partition, m => m.Message.BatchId));
            sagaConfigurator.Message <CancelBatch>(x => x.UsePartitioner(partition, m => m.Message.BatchId));
        }
 protected override void ConfigureSaga(IReceiveEndpointConfigurator endpointConfigurator, ISagaConfigurator <BatchState> sagaConfigurator)
 {
     sagaConfigurator.UseMessageRetry(r => r.Immediate(5));
     sagaConfigurator.UseInMemoryOutbox();
 }
Beispiel #5
0
 protected override void ConfigureSaga(IReceiveEndpointConfigurator endpointConfigurator, ISagaConfigurator <OrderState> sagaConfigurator)
 {
     sagaConfigurator.UseMessageRetry(r => r.Immediate(_settings.MessageRetryImmediatePolicy));
     sagaConfigurator.UseInMemoryOutbox();
 }