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(); }
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(); }