Наследование: ReceiveEndpointBuilder, IHttpReceiveEndpointBuilder
Пример #1
0
        protected IReceivePipe CreateReceivePipe()
        {
            //            AddRescueFilter(builder);

            var endpointBuilder = new HttpReceiveEndpointBuilder(_hosts[0], ConsumePipe, this);

            IPipe <ReceiveContext> receivePipe = Pipe.New <ReceiveContext>(x =>
            {
                x.UseFilter(new DeserializeFilter(endpointBuilder.MessageDeserializer, ConsumePipe));
            });

            return(new ReceivePipe(receivePipe, ConsumePipe));
        }
Пример #2
0
        protected IReceivePipe CreateReceivePipe()
        {
            //            AddRescueFilter(builder);

            var endpointBuilder = new HttpReceiveEndpointBuilder(_hosts[0], ConsumePipe, this);

            IPipe<ReceiveContext> receivePipe = Pipe.New<ReceiveContext>(x =>
            {
                x.UseFilter(new DeserializeFilter(endpointBuilder.MessageDeserializer, ConsumePipe));
            });

            return new ReceivePipe(receivePipe, ConsumePipe);
        }