public async Task <License> LoadLicenseFromDisk(string licenseDocumentId)
        {
            var filePath = $"{LicenseConstants.LicensesDirectory}/{licenseDocumentId}{LicenseConstants.LicensFileExtension}";

            if (!File.Exists(filePath))
            {
                return(null);
            }

            return(License.Load(await File.ReadAllTextAsync(filePath)));
        }
 public License LoadLicense(Stream stream)
 {
     return(License.Load(stream));
 }
 public License LoadLicense(string xmlString)
 {
     return(License.Load(xmlString));
 }