示例#1
0
 /// <summary>
 /// Creates a new <see cref="ReceivePort"/>
 /// </summary>
 public ReceivePort()
 {
     this.receiveLocations    = new BizTalkBaseObjectCollectionEx();
     this.outboundMaps        = new NameIdPairCollection();
     this.inboundMaps         = new NameIdPairCollection();
     this.boundOrchestrations = new NameIdPairCollection();
 }
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public BizTalkBaseObjectCollectionEx GetRuleSets()
        {
            TraceManager.SmartTrace.TraceIn();

            BizTalkBaseObjectCollectionEx ruleSets = new BizTalkBaseObjectCollectionEx();

            try
            {
                RuleSetDeploymentDriver rsdd = new RuleSetDeploymentDriver(this.server, this.database);
                RuleStore rs = rsdd.GetRuleStore();

                RuleSetInfoCollection rsic = rs.GetRuleSets(Microsoft.RuleEngine.RuleStore.Filter.All);

                foreach (RuleSetInfo rsi in rsic)
                {
                    RuleArtifact ra = new RuleArtifact();
                    ra.Name          = rsi.Name;
                    ra.MajorVersion  = rsi.MajorRevision;
                    ra.MinorVersion  = rsi.MinorRevision;
                    ra.QualifiedName = ra.Name + "," + ra.MajorVersion + "," + ra.MinorVersion;
                    ruleSets.Add(ra);
                }
            }
            catch (Exception ex)
            {
                TraceManager.SmartTrace.TraceError(ex);
            }

            TraceManager.SmartTrace.TraceOut();
            return(ruleSets);
        }
示例#3
0
 /// <summary>
 /// Creates a new <see cref="Host"/>
 /// </summary>
 public Host()
 {
     this.hostInstances          = new BizTalkBaseObjectCollectionEx();
     this.hostedReceiveLocations = new NameIdPairCollection();
     this.hostedOrchestrations   = new NameIdPairCollection();
     this.hostedSendPorts        = new NameIdPairCollection();
 }
示例#4
0
 /// <summary>
 /// Creates a new <see cref="Schema"/>
 /// </summary>
 public Schema()
 {
     this.xmlContent         = string.Empty;
     this.properties         = new ArrayList();
     this.importedProperties = new ArrayList();
     this.importedSchema     = new BizTalkBaseObjectCollectionEx();
 }
        /// <summary>
        ///
        /// </summary>
        /// <param name="filterXml"></param>
        /// <returns></returns>
        internal static BizTalkBaseObjectCollectionEx CreateFilterGroups(string filterXml)
        {
            BizTalkBaseObjectCollectionEx groups = new BizTalkBaseObjectCollectionEx();

            XmlDocument filterDoc = new XmlDocument();

            filterDoc.LoadXml(filterXml);

            foreach (XmlNode groupNode in filterDoc.SelectNodes("./Filter/Group"))
            {
                FilterGroup fg = new FilterGroup();

                foreach (XmlNode statementNode in groupNode.SelectNodes("./Statement"))
                {
                    Filter f = new Filter();
                    f.Property       = statementNode.Attributes.GetNamedItem("Property").Value.ToString();
                    f.FilterOperator = (FilterOperator)Enum.Parse(typeof(FilterOperator), statementNode.Attributes.GetNamedItem("Operator").Value.ToString());

                    XmlNode valueNode = statementNode.Attributes.GetNamedItem("Value");

                    if (valueNode != null)
                    {
                        f.Value = valueNode.Value.ToString();
                    }
                    fg.Filter.Add(f);
                }

                groups.Add(fg);
            }

            return(groups);
        }
 /// <summary>
 /// Creates a new <see cref="SendPort"/>
 /// </summary>
 public SendPort()
 {
     this.priority            = 5;
     this.filterGroups        = new BizTalkBaseObjectCollectionEx();
     this.outboundMaps        = new NameIdPairCollection();
     this.inboundMaps         = new NameIdPairCollection();
     this.parentGroups        = new NameIdPairCollection();
     this.boundOrchestrations = new NameIdPairCollection();
 }
示例#7
0
 /// <summary>
 /// Constructor
 /// </summary>
 public BizTalkApplication()
 {
     this.schemas                    = new BizTalkBaseObjectCollectionEx();
     this.assemblies                 = new BizTalkBaseObjectCollectionEx();
     this.pipelines                  = new BizTalkBaseObjectCollectionEx();
     this.sendPorts                  = new BizTalkBaseObjectCollectionEx();
     this.sendPortGroups             = new BizTalkBaseObjectCollectionEx();
     this.receivePorts               = new BizTalkBaseObjectCollectionEx();
     this.maps                       = new BizTalkBaseObjectCollectionEx();
     this.orchestrations             = new BizTalkBaseObjectCollectionEx();
     this.referencedApplications     = new NameIdPairCollection();
     this.backReferencedApplications = new NameIdPairCollection();
     this.roleLinks                  = new BizTalkBaseObjectCollectionEx();
 }
        /// <summary>
        ///
        /// </summary>
        /// <param name="filterXml"></param>
        /// <returns></returns>
        internal static BizTalkBaseObjectCollectionEx CreateFilterGroups(string filterXml)
        {
            BizTalkBaseObjectCollectionEx groups = new BizTalkBaseObjectCollectionEx();

            XmlDocument filterDoc = new XmlDocument();

            //CD 20140407
            try
            {
                filterDoc.LoadXml(filterXml);
            }
            catch (Exception ex)
            {
                throw new ApplicationException(string.Format(
                                                   @"The Filter XML is malformed (quite often caused by the binding being reformatted and putting whitespace in front of the filter XML): 
                      XML='{0}' ",
                                                   filterXml));
            }

            foreach (XmlNode groupNode in filterDoc.SelectNodes("./Filter/Group"))
            {
                FilterGroup fg = new FilterGroup();
                // Added so that it actually adds it to the list - CD 20140408
                fg.Name = "Filter Group";

                foreach (XmlNode statementNode in groupNode.SelectNodes("./Statement"))
                {
                    Filter f = new Filter();
                    f.Property       = statementNode.Attributes.GetNamedItem("Property").Value.ToString();
                    f.FilterOperator = (FilterOperator)Enum.Parse(typeof(FilterOperator), statementNode.Attributes.GetNamedItem("Operator").Value.ToString());
                    // Added so that it actually adds it to the list - CD 20140408
                    f.Name = "Filter";

                    XmlNode valueNode = statementNode.Attributes.GetNamedItem("Value");

                    if (valueNode != null)
                    {
                        f.Value = valueNode.Value.ToString();
                    }
                    // Changed to ignore duplicate name - CD 20140408
                    fg.Filter.Add(f, true);
                }
                // Changed to ignore duplicate name - CD 20140408
                groups.Add(fg, true);
            }

            return(groups);
        }
示例#9
0
 public Orchestration()
 {
     this.ports = new BizTalkBaseObjectCollectionEx();
     this.invokedOrchestrations = new BizTalkBaseObjectCollectionEx();
     this.variables             = new BizTalkBaseObjectCollectionEx();
     this.messages            = new BizTalkBaseObjectCollectionEx();
     this.correlationSets     = new BizTalkBaseObjectCollectionEx();
     this.correlationSetTypes = new BizTalkBaseObjectCollectionEx();
     this.calledRules         = new ArrayList();
     this.transforms          = new NameIdPairCollection();
     this.shapeMap            = new ArrayList();
     this.coverageShapes      = new Hashtable();
     this.trackedShapeIds     = new ArrayList();
     this.orchestrationErrors = new ArrayList();
     this.multiPartMessages   = new BizTalkBaseObjectCollectionEx();
     this.roleLinks           = new BizTalkBaseObjectCollectionEx();
 }
        public BizTalkInstallation()
        {
            this.applications  = new BizTalkBaseObjectCollectionEx();
            this.protocolTypes = new BizTalkBaseObjectCollectionEx();
            this.hosts         = new BizTalkBaseObjectCollectionEx();
            this.parties       = new BizTalkBaseObjectCollectionEx();

            this.schemas        = new BizTalkBaseObjectCollectionEx();
            this.assemblies     = new BizTalkBaseObjectCollectionEx();
            this.pipelines      = new BizTalkBaseObjectCollectionEx();
            this.sendPorts      = new BizTalkBaseObjectCollectionEx();
            this.sendPortGroups = new BizTalkBaseObjectCollectionEx();
            this.receivePorts   = new BizTalkBaseObjectCollectionEx();
            this.maps           = new BizTalkBaseObjectCollectionEx();
            this.orchestrations = new BizTalkBaseObjectCollectionEx();
            this.roles          = new BizTalkBaseObjectCollectionEx();
        }
示例#11
0
        public OrchestrationMultiPartMessage(XmlNode msgNode, XmlNamespaceManager mgr)
        {
            this.parts = new BizTalkBaseObjectCollectionEx();

            this.Name     = msgNode.SelectSingleNode("om:Property[@Name='Name']", mgr).Attributes.GetNamedItem("Value").Value;
            this.Modifier = msgNode.SelectSingleNode("om:Property[@Name='TypeModifier']", mgr).Attributes.GetNamedItem("Value").Value;

            XmlNode descNode = msgNode.SelectSingleNode("om:Property[@Name='AnalystComments']", mgr);

            if (descNode != null)
            {
                this.Description = descNode.Attributes.GetNamedItem("Value").Value;
            }

            XmlNodeList partNodes = msgNode.SelectNodes("om:Element[@Type='PartDeclaration']", mgr);

            foreach (XmlNode partNode in partNodes)
            {
                MessagePart mp = new MessagePart(partNode, mgr);
                this.parts.Add(mp);
            }
        }
示例#12
0
 /// <summary>
 ///
 /// </summary>
 public Party()
 {
     this.aliases   = new BizTalkBaseObjectCollectionEx();
     this.roleLinks = new NameIdPairCollection();
     this.sendPorts = new NameIdPairCollection();
 }
示例#13
0
 public OrchestrationMultiPartMessage()
 {
     this.parts = new BizTalkBaseObjectCollectionEx();
 }
 public SendPortGroup()
 {
     sendPorts                = new NameIdPairCollection();
     this.filterGroups        = new BizTalkBaseObjectCollectionEx();
     this.boundOrchestrations = new NameIdPairCollection();
 }
示例#15
0
 public FilterGroup()
 {
     this.filters = new BizTalkBaseObjectCollectionEx();
 }