Example #1
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));
        }
Example #2
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));
        }
      /// <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);
      }
Example #4
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));
        }
      //
      // 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);
      }
      //
      // 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);
      }