public StructureParser(Context context, AssistStructure structure) { mContext = context; Structure = structure; AutofillFields = new AutofillFieldMetadataCollection(); domainSuffixParserCache = new PublicSuffixRuleCache(context); }
public StructureParser(Context context, AssistStructure structure) { kp2aDigitalAssetLinksDataSource = new Kp2aDigitalAssetLinksDataSource(context); mContext = context; Structure = structure; AutofillFields = new AutofillFieldMetadataCollection(); domainSuffixParserCache = new PublicSuffixRuleCache(context); }
public bool CheckRegisterableDomain(string domainName, string registerableDomain) { var ruleCache = new PublicSuffixRuleCache(@"C:\publicsuffix.txt"); DomainName outDomain; if (DomainName.TryParse(domainName, ruleCache, out outDomain)) { return(outDomain.RegisterableDomainName == registerableDomain); } return(registerableDomain == null); }