Пример #1
0
 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
        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();
        }