Example #1
0
        internal static void SetReceivePortReferences(BizTalkArtifacts artifacts, IEnumerable <Microsoft.BizTalk.ExplorerOM.ReceivePort> receivePorts)
        {
            Log.Info("Sets model references for receive ports");

            foreach (var omReceivePort in receivePorts)
            {
                Log.Debug("Sets references for receive port {0}", omReceivePort.Name);
                var receivePort = artifacts.ReceivePorts[omReceivePort.Id()];
                ReceivePortModelTransformer.SetReferences(receivePort, artifacts, omReceivePort);
            }
        }
Example #2
0
        internal static IDictionary <string, ReceivePort> TransformReceivePorts(IEnumerable <Microsoft.BizTalk.ExplorerOM.ReceivePort> omReceivePorts)
        {
            Log.Info("Tranforms receive ports in new model");

            var reveicePorts = new Dictionary <string, ReceivePort>();

            foreach (var omReceivePort in omReceivePorts)
            {
                if (!reveicePorts.ContainsKey(omReceivePort.Id()))
                {
                    Log.Debug("Tranform receive port '{0}' into new model", omReceivePort.Name);
                    reveicePorts.Add(omReceivePort.Id(), ReceivePortModelTransformer.TransforModel(omReceivePort));
                }
                else
                {
                    Log.Warn("Skips receive port '{0}' as it exists in model", omReceivePort.Name);
                }
            }

            return(reveicePorts);
        }