//--- Methods --- public virtual LicenseData UpdateLicense(XDoc license, LicenseData currentLicense, ILicenseBL licenseBL, ISeatingBL seatingBL) { licenseBL.Validate(license); // Only site owner of a license can upload a license that has seat licensing enabled. seatingBL.ValidateLicenseUpdateUser(license); var newLicense = HandleLicenseTransition(license, currentLicense, seatingBL, licenseBL); _licenseStoragePlug.At(_wikiId, LICENSE_FILE).Put(license); return newLicense; }
//--- Methods --- public override LicenseData UpdateLicense(XDoc license, LicenseData currentLicense, ILicenseBL licenseBL, ISeatingBL seatingBL) { _log.DebugFormat("updating license from '{1}' to '{0}'", license["@type"].Contents, currentLicense.LicenseState); licenseBL.Validate(license); return(HandleLicenseTransition(license, currentLicense, seatingBL, licenseBL)); }
//--- Methods --- public override LicenseData UpdateLicense(XDoc license, LicenseData currentLicense, ILicenseBL licenseBL, ISeatingBL seatingBL) { _log.DebugFormat("updating license from '{1}' to '{0}'", license["@type"].Contents, currentLicense.LicenseState); licenseBL.Validate(license); return HandleLicenseTransition(license, currentLicense, seatingBL, licenseBL); }