コード例 #1
0
        /// <summary>
        /// Serializes the WaitForFile settings into XML
        /// </summary>
        /// <param name="doc"></param>
        /// <param name="infoEvents"></param>
        void IDTSComponentPersist.SaveToXML(System.Xml.XmlDocument doc, IDTSInfoEvents infoEvents)
        {
            XmlElement data = doc.CreateElement("WaitForFilesData");

            doc.AppendChild(data);

            data.SetAttribute("checkType", CheckType.ToString());
            data.SetAttribute("existenceType", ExistenceType.ToString());
            data.SetAttribute("checkTimeoutInterval", CheckTimeoutInterval.ToString());
            data.SetAttribute("checkTimeoutTime", checkTimeoutTime.ToString());
            data.SetAttribute("checkInterval", CheckInterval.ToString());
            data.SetAttribute("timeoutNextDayIfTimePassed", TimeoutNextDayIfTimePassed.ToString());

            XmlElement filesNode = doc.CreateElement("checkFiles");

            data.AppendChild(filesNode);

            foreach (string file in files)
            {
                XmlElement fileNode = doc.CreateElement("file");
                fileNode.SetAttribute("name", file);
                filesNode.AppendChild(fileNode);
            }
        }
コード例 #2
0
 public ExistenceCondition(QueryBuilder innerExistsQuery, ExistenceType existenceType = ExistenceType.Exists, LogicalOperatorType sufixOperator = LogicalOperatorType.And)
 {
     InnerQuery      = innerExistsQuery;
     ExistenceType   = existenceType;
     LogicalOperator = sufixOperator;
 }