Inheritance: ReceiveEndpointBuilder, IHttpReceiveEndpointBuilder
コード例 #1
0
ファイル: HttpBusBuilder.cs プロジェクト: zzms/MassTransit
        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);
        }