Exemplo n.º 1
0
        public static SWPipeline RetSendPipeline(Type type)
        {
            if (type == null)
            {
                throw new ArgumentNullException("type");
            }

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

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

            return(new SWPipeline(pipeline));
        }
Exemplo n.º 2
0
        public static wSendPipeline retSendPP(Type type)
        {
            if (type == null)
            {
                throw new ArgumentNullException("Pipeline not present, deploy it");
            }

            if (!type.IsSubclassOf(typeof(SendPipeline)))
            {
                throw new InvalidOperationException("No Send Pipeline type");
            }

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

            return(new wSendPipeline(pipeline));
        }
Exemplo n.º 3
0
        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));
        }