public IncomingPipeline Create() { var pipeline = new IncomingPipeline(); pipeline.Transport .Register(new DeadLetterMessagesWhichCantBeDeserializedStep(new NoOpDeadLetter())) .Register(new DeserializeTransportMessageStep(new NewtonsoftJsonMessageSerializer())); pipeline.Logical .Register(new DeadLetterMessagesWhenRetryCountIsReachedStep(new NoOpDeadLetter())) .Register(new LoadMessageHandlersStep(registry)) .Register(new InvokeHandlerStep()); return(pipeline); }
public IncomingPipeline Create() { var pipeline = new IncomingPipeline(); pipeline.Transport .Register(new DeadLetterMessagesWhichCantBeDeserializedStep(new NoOpDeadLetter())) .Register(new DeserializeTransportMessageStep(new NewtonsoftJsonMessageSerializer())); pipeline.Logical .Register(new DeadLetterMessagesWhenRetryCountIsReachedStep(new NoOpDeadLetter())) .Register(new LoadMessageHandlersStep(registry)) .Register(new InvokeHandlerStep()); return pipeline; }
public IncomingBusDecorator(Bus bus, IncomingPipeline incomingPipeline, TransportMessage incoming) { this.incoming = incoming; this.incomingPipeline = incomingPipeline; this.bus = bus; }