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