상속: IIncomingTransportStepRegisterer, IIncomingLogicalStepRegisterer
        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;
        }
예제 #3
0
파일: Bus.cs 프로젝트: kjellski/async-dolls
 public IncomingBusDecorator(Bus bus, IncomingPipeline incomingPipeline, TransportMessage incoming)
 {
     this.incoming = incoming;
     this.incomingPipeline = incomingPipeline;
     this.bus = bus;
 }