Beispiel #1
0
        //
        // Send Pipeline Methods
        //

        /// <summary>
        /// Creates a send pipeline with no components
        /// on any stage
        /// </summary>
        /// <returns>An empty send pipeline</returns>
        public static SendPipelineWrapper CreateEmptySendPipeline()
        {
            PipelineHelper helper   = new PipelineHelper();
            IPipeline      pipeline = helper.CreateSendPipeline();

            return(new SendPipelineWrapper(pipeline));
        }
 internal SendPipelineWrapper(IPipeline pipeline)
    : base (pipeline, false)
 {
    FindStage(PipelineStage.PreAssemble);
    FindStage(PipelineStage.Assemble);
    FindStage(PipelineStage.Encode);
 }
Beispiel #3
0
        //
        // Receive Pipeline Methods
        //

        /// <summary>
        /// Creates a receive pipeline with no components
        /// on any stage
        /// </summary>
        /// <returns>An empty receive pipeline</returns>
        public static ReceivePipelineWrapper CreateEmptyReceivePipeline()
        {
            PipelineHelper helper   = new PipelineHelper();
            IPipeline      pipeline = helper.CreateReceivePipeline();

            return(new ReceivePipelineWrapper(pipeline));
        }
Beispiel #4
0
 internal SendPipelineWrapper(IPipeline pipeline)
     : base(pipeline, false)
 {
     FindStage(PipelineStage.PreAssemble);
     FindStage(PipelineStage.Assemble);
     FindStage(PipelineStage.Encode);
 }
Beispiel #5
0
 internal SWPipeline(IPipeline pipeline)
     : base(pipeline, false)
 {
     FindStage(ppStage.PreAssembleStage);
     FindStage(ppStage.AssembleStage);
     FindStage(ppStage.EncodeStage);
 }
 internal ReceivePipelineWrapper(IPipeline pipeline)
     : base(pipeline, true)
 {
     FindStage(PipelineStage.Decode);
     FindStage(PipelineStage.Disassemble);
     FindStage(PipelineStage.Validate);
     FindStage(PipelineStage.ResolveParty);
 }
 internal RWPipeline(IPipeline pipeline)
     : base(pipeline, true)
 {
     FindStage(ppStage.DecodeStage);
     FindStage(ppStage.DisassembleStage);
     FindStage(ppStage.ValidateStage);
     FindStage(ppStage.ResolvePartyStage);
 }
 internal ReceivePipelineWrapper(IPipeline pipeline)
    : base(pipeline, true)
 {
    FindStage(PipelineStage.Decode);
    FindStage(PipelineStage.Disassemble);
    FindStage(PipelineStage.Validate);
    FindStage(PipelineStage.ResolveParty);
 }
Beispiel #9
0
 /// <summary>
 /// Initializes an instance
 /// </summary>
 /// <param name="pipeline">Pipeline object to wrap</param>
 /// <param name="isReceivePipeline">True if it's a receive pipeline</param>
 protected BasePipelineWrapper(IPipeline pipeline, bool isReceivePipeline)
 {
     if (pipeline == null)
     {
         throw new ArgumentNullException("pipeline");
     }
     _pipeline          = pipeline;
     _pipelineContext   = CreatePipelineContext();
     _isReceivePipeline = isReceivePipeline;
 }
Beispiel #10
0
        /// <summary>
        /// Creates a receive pipeline from a given biztalk
        /// pipeline type
        /// </summary>
        /// <param name="type">BizTalk pipeline type</param>
        /// <returns>A receive Pipeline</returns>
        public static ReceivePipelineWrapper CreateReceivePipeline(Type type)
        {
            if (type == null)
            {
                throw new ArgumentNullException("type");
            }

            if (!type.IsSubclassOf(typeof(ReceivePipeline)))
            {
                throw new InvalidOperationException("Type must specify a Receive Pipeline");
            }

            PipelineHelper helper   = new PipelineHelper();
            IPipeline      pipeline = helper.CreatePipelineFromType(type);

            return(new ReceivePipelineWrapper(pipeline));
        }
        public static RWPipeline RetReceivePipeline(Type type)
        {
            if (type == null)
            {
                throw new ArgumentNullException("Pipeline type null, deploy Pipeline in BizTalk BizTalkMgmtDb database");
            }

            if (!type.IsSubclassOf(typeof(ReceivePipeline)))
            {
                throw new InvalidOperationException("Type must specify a Receive Pipeline");
            }

            PipelineHelper helper   = new PipelineHelper();
            IPipeline      pipeline = helper.CreatePipelineFromType(type);

            return(new RWPipeline(pipeline));
        }