internal static void SetSendPortGroupReferences(BizTalkArtifacts artifacts, IEnumerable <Microsoft.BizTalk.ExplorerOM.SendPortGroup> sendPortsGroup) { Log.Info("Sets model references for send ports groups"); foreach (var omSendPortGroup in sendPortsGroup) { Log.Debug("Sets references for send port group {0}", omSendPortGroup.Name); var sendPortGroup = artifacts.SendPortGroups[omSendPortGroup.Id()]; SendPortGroupModelTransformer.SetReferences(sendPortGroup, artifacts, omSendPortGroup); } }
internal static IDictionary <string, SendPortGroup> TransformSendPortGroups(IEnumerable <Microsoft.BizTalk.ExplorerOM.SendPortGroup> omSendPortGroups) { Log.Info("Tranforms send ports to new model"); var sendPortGroups = new Dictionary <string, SendPortGroup>(); foreach (var omSendPortGroup in omSendPortGroups) { if (!sendPortGroups.ContainsKey(omSendPortGroup.Id())) { Log.Debug("Tranform send port group '{0}' into new model", omSendPortGroup.Name); sendPortGroups.Add(omSendPortGroup.Id(), SendPortGroupModelTransformer.TransformModel(omSendPortGroup)); } else { Log.Warn("Skips send port group '{0}' as it exists in model", omSendPortGroup.Name); } } return(sendPortGroups); }