Exemple #1
0
 public StructureParser(Context context, AssistStructure structure)
 {
     mContext                = context;
     Structure               = structure;
     AutofillFields          = new AutofillFieldMetadataCollection();
     domainSuffixParserCache = new PublicSuffixRuleCache(context);
 }
Exemple #2
0
 public StructureParser(Context context, AssistStructure structure)
 {
     kp2aDigitalAssetLinksDataSource = new Kp2aDigitalAssetLinksDataSource(context);
     mContext                = context;
     Structure               = structure;
     AutofillFields          = new AutofillFieldMetadataCollection();
     domainSuffixParserCache = new PublicSuffixRuleCache(context);
 }
Exemple #3
0
        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);
        }