コード例 #1
0
        internal static SendPortGroup TransformModel(Microsoft.BizTalk.ExplorerOM.SendPortGroup omSendPortGroup)
        {
            var sendPortGroup = new SendPortGroup();

            sendPortGroup.Name         = omSendPortGroup.Name;
            sendPortGroup.Description  = omSendPortGroup.Description;
            sendPortGroup.FilterGroups = FilterGroupTransformer.CreateFilterGroups(omSendPortGroup.Filter);

            return(sendPortGroup);
        }
コード例 #2
0
        internal static void SetReferences(SendPortGroup sendPortGroup, BizTalkArtifacts artifacts, Microsoft.BizTalk.ExplorerOM.SendPortGroup omSendPortGroup)
        {
            sendPortGroup.Application = artifacts.Applications[omSendPortGroup.Application.Id()];

            var sendPortIds = omSendPortGroup.SendPorts.Cast <Microsoft.BizTalk.ExplorerOM.SendPort>().Select(s => s.Id());

            sendPortGroup.SendPorts.AddRange(artifacts.SendPorts.Where(t => sendPortIds.Contains(t.Key)).Select(s => s.Value));
        }