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.");
 }