internal static void SetPipelineReferences(BizTalkArtifacts artifacts, IEnumerable <Microsoft.BizTalk.ExplorerOM.Pipeline> omPipelines) { Log.Info("Sets model references for pipelines"); foreach (var omPipeline in omPipelines) { Log.Debug("Sets references for pipeline {0}", omPipeline.FullName); var pipeline = artifacts.Pipelines[omPipeline.Id()]; PipelineModelTransformer.SetReferences(pipeline, artifacts, omPipeline); } }
internal static IDictionary <string, Pipeline> TransformPipelines(IEnumerable <Microsoft.BizTalk.ExplorerOM.Pipeline> omPipelines) { Log.Info("Tranforms pipelines in new model"); var pipelines = new Dictionary <string, Pipeline>(); foreach (var omPipeline in omPipelines) { if (!pipelines.ContainsKey(omPipeline.Id())) { Log.Debug("Tranform pipeline '{0}' into new model", omPipeline.FullName); pipelines.Add(omPipeline.Id(), PipelineModelTransformer.TransformModel(omPipeline)); } else { Log.Warn("Skips pipeline '{0}' as it exists in model", omPipeline.FullName); } } return(pipelines); }