internal static void SetHostReferences(BizTalkArtifacts artifacts, IEnumerable <Microsoft.BizTalk.ExplorerOM.Host> omHosts, IEnumerable <Microsoft.BizTalk.ExplorerOM.BtsOrchestration> omOrchestrations, IEnumerable <Microsoft.BizTalk.ExplorerOM.SendPort> omSendPorts, IEnumerable <Microsoft.BizTalk.ExplorerOM.ReceivePort> omReceivePorts) { Log.Info("Sets model references for hosts"); foreach (var omHost in omHosts) { Log.Debug("Sets references for host {0}", omHost.Name); var host = artifacts.Hosts[omHost.Id()]; HostModelTransformer.SetReferences(host, artifacts, omOrchestrations, omSendPorts, omReceivePorts); } }
internal static IDictionary <string, Host> TransformHosts(IEnumerable <Microsoft.BizTalk.ExplorerOM.Host> omHosts) { Log.Info("Tranforms hosts in new model"); var hosts = new Dictionary <string, Host>(); foreach (var omHost in omHosts) { Log.Debug("Tranform host '{0}' into new model", omHost.Name); hosts.Add(omHost.Id(), HostModelTransformer.TransformModel(omHost)); } return(hosts); }