public void Dispose()
 {
     if (license != null)
     {
         license.Dispose();
         license = null;
     }
 }
Пример #2
0
 public void Dispose()
 {
     if (license != null)
     {
         license.Dispose();
         license = null;
     }
 }
 public LicensedProcCountingClass()
 {
     license = (ProcCountLicenseProvider.ProcCountLicense)LicenseManager.Validate(typeof(LicensedProcCountingClass), this);
     Console.WriteLine("License valid for " + license.ValidProcCount + " processors.");
 }
Пример #4
0
 public LicensedProcCountingClass()
 {
     license = (ProcCountLicenseProvider.ProcCountLicense)LicenseManager.Validate(typeof(LicensedProcCountingClass), this);
     Console.WriteLine("License valid for " + license.ValidProcCount + " processors.");
 }