示例#1
0
文件: Containers.cs 项目: zBart/Ares
 public SequentialElement(System.Xml.XmlReader reader)
 {
     if (reader.IsEmptyElement)
     {
         XmlHelpers.ThrowException(StringResources.ExpectedContent, reader);
     }
     FixedStartDelay         = reader.GetTimeSpanAttribute("fixedDelay");
     MaximumRandomStartDelay = reader.GetTimeSpanAttribute("maxDelay");
     reader.Read();
     DoReadFromXml(reader);
     reader.ReadEndElement();
 }
示例#2
0
文件: Containers.cs 项目: zBart/Ares
        public ParallelElement(System.Xml.XmlReader reader)
        {
            if (reader.IsEmptyElement)
            {
                XmlHelpers.ThrowException(StringResources.ExpectedContent, reader);
            }
            FixedStartDelay                = reader.GetTimeSpanAttribute("fixedDelay");
            MaximumRandomStartDelay        = reader.GetTimeSpanAttribute("maxDelay");
            RepeatCount                    = reader.GetIntegerAttribute("repeatCount");
            FixedIntermediateDelay         = reader.GetTimeSpanAttribute("fixedIntermediateDelay");
            MaximumRandomIntermediateDelay = reader.GetTimeSpanAttribute("maxIntermediateDelay");

            reader.Read();
            DoReadFromXml(reader);
            reader.ReadEndElement();
        }