protected void ApplyLicenseCommand(ProductLicenseCommand command) { ProductLicenseCommand oldCommand = null; if (LicenseServices.LicenseInformation.HasLicenseOverrideCommand) { oldCommand = LicenseServices.LicenseInformation.LicenseOverrideCommand; } LicenseServices.RegisterLicenseOverrideCommand(command); LicenseEnforcer.ApplyLicense(command.NotifyUser && LicenseEnforcer.CountNagged == 0); // nag user if he hasn't already been nagged }
public bool DetermineLicenseCompliance(out bool systemShouldNagUser, out string nagMessage) { return(LicenseEnforcer.DetermineLicenseCompliance(out systemShouldNagUser, out nagMessage)); }
public void ApplyLicense(bool nagUser = true) { LicenseEnforcer.ApplyLicense(nagUser); }
public IPlugin Install(Config c) { c.Plugins.add_plugin(this); EnforcerPlugin = c.Plugins.GetOrInstall(EnforcerPlugin); return(this); }
public EmptyLicenseEnforcedPlugin(LicenseEnforcer <EmptyLicenseEnforcedPlugin> enforcer, params string[] codes) { EnforcerPlugin = enforcer; this.codes = codes; }