Exemple #1
0
 internal LicenseHelper(LicenseType type)
 {
     _licenseType = type;
     _codeLength = 8;
     var codeLength = type.GetType().GetField(type.ToString()).GetCustomAttribute<CodeLengthAttribute>();
     if (codeLength != null)
         _codeLength = codeLength.Length;
     _cacheCodes = new List<string>();
 }
Exemple #2
0
        internal LicenseHelper(LicenseType type)
        {
            _licenseType = type;
            _codeLength  = 8;
            var codeLength = type.GetType().GetField(type.ToString()).GetCustomAttribute <CodeLengthAttribute>();

            if (codeLength != null)
            {
                _codeLength = codeLength.Length;
            }
            _cacheCodes = new List <string>();
        }