public void Dispose() { if (license != null) { license.Dispose(); license = null; } }
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."); }
public LicensedProcCountingClass() { license = (ProcCountLicenseProvider.ProcCountLicense)LicenseManager.Validate(typeof(LicensedProcCountingClass), this); Console.WriteLine("License valid for " + license.ValidProcCount + " processors."); }