public ConditionGroup(XmlElement element) { NotBefore = element.ReadAttribute<DateTimeOffset>(NotBeforeAtt); NotOnOrAfter = element.ReadAttribute<DateTimeOffset>(NotOnOrAfterAtt); // TODO -- couple other kinds of conditions here readAudiences(element).Each(Add); }
public void ReadFromXml(XmlElement element) { if (element == null) return; var currentList = element.ReadAttribute("current"); var assemblyListGroups = from assemblyList in element.SelectElements("AssemblyList") let name = assemblyList.ReadAttribute("name") from assemblyFile in assemblyList.SelectElements("AssemblyFile") group XmlUtil.ReadLeafElementValue(assemblyFile) by name; var assemblyLists = assemblyListGroups.ToDictionary(k => k.Key, v => (IList<string>)v.ToList()); manager = new AssemblyListManager(assemblyLists, currentList); }
public SubjectConfirmationData(XmlElement element) { NotOnOrAfter = element.ReadAttribute<DateTimeOffset>(NotOnOrAfterAtt); Recipient = element.ReadAttribute<Uri>(RecipientAtt); }