Пример #1
0
            public IncomingPipeline Create()
            {
                var pipeline = new IncomingPipeline();

                pipeline.Transport
                    .Register(new DeadLetterMessagesWhichCantBeDeserializedStep())
                    .Register(new DeserializeTransportMessageStep(new NewtonsoftJsonMessageSerializer()));

                pipeline.Logical
                    .Register(new DeadLetterMessagesWhenRetryCountIsReachedStep())
                    .Register(new LoadMessageHandlersStep(this.registry))
                    .Register(new InvokeHandlerStep())
                    .Register(new TraceIncomingLogical(this.incoming));

                return pipeline;
            }
Пример #2
0
 public IncomingBusDecorator(Bus bus, IncomingPipeline incomingPipeline, TransportMessage incoming)
 {
     this.incoming = incoming;
     this.incomingPipeline = incomingPipeline;
     this.bus = bus;
 }