Esempio n. 1
0
 public static void ReadInstallCode(StringBuilder s, short productId)
 {
     if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
     {
         UnManagedNCLicense.ReadInstallCode(s, productId);
     }
     else
     {
         if (!string.IsNullOrEmpty(_installCode))
         {
             s.Append(_installCode);
             return;
         }
         RegUtil.LoadRegistry();
         var installCode = RegUtil.GetInstallCode();
         NCCryptoCode.Decode(installCode, s);
         _installCode = s.ToString();
     }
 }