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)); }
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(); }
protected override void ConfigureSaga(IReceiveEndpointConfigurator endpointConfigurator, ISagaConfigurator <OrderState> sagaConfigurator) { sagaConfigurator.UseMessageRetry(r => r.Immediate(_settings.MessageRetryImmediatePolicy)); sagaConfigurator.UseInMemoryOutbox(); }
protected override void ConfigureSaga(IReceiveEndpointConfigurator endpointConfigurator, ISagaConfigurator <BatchState> sagaConfigurator) { sagaConfigurator.UseMessageRetry(r => r.Immediate(5)); //sagaConfigurator.UseInMemoryOutbox(); // Don't use this because of scheduling, until https://github.com/MassTransit/MassTransit/issues/1550 is fixed }