public AccessRequest(string cls, XElement xElement) {
     var nameAttr = xElement.Attribute("name");
     string name = nameAttr == null ? "" : nameAttr.Value;
     Identifier = new IdentifierImpl(cls, name);
     checkType = xElement.Attribute("type").Value;
     requiredClaims = xElement.Descendants("claim").Select(c => new Claim(c.Attribute("type").Value, c.Attribute("value").Value)).ToList();
 }
Example #2
0
 public DotNetSpecification(Type type, DotNetReflector reflector) {
     introspector = new DotNetIntrospector(type, this, reflector);
     identifier = new IdentifierImpl(type.FullName);
 }