Ejemplo n.º 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());

            return(pipeline);
        }
        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());

            return pipeline;
        }
Ejemplo n.º 3
0
        public IncomingPipeline Create()
        {
            var pipeline = new IncomingPipeline();

            pipeline.Transport
            .Register(new DeadLetterMessagesWhichCantBeDeserializedStep())
            .Register(new DeserializeTransportMessageStep(this.serializer));

            pipeline.Logical
            .Register(new DeadLetterMessagesWhenDelayedRetryCountIsReachedStep())
            .Register(new DelayMessagesWhenImmediateRetryCountIsReachedStep())
            .Register(new DeadletterMessageImmediatelyExceptionStep())
            .Register(new LoadMessageHandlersStep(this.registry))
            .Register(new InvokeHandlerStep());

            return(pipeline);
        }