/// <summary> /// Get expiration date for current serial number /// </summary> /// <param name="serial"></param> /// <returns></returns> private DateTime[] GetExpiryDates(string[] serialHashes) { try { using (var server = new DeployLXLicensingServer()) { var expiryDates = server.GetExpiryDate(serialHashes); return(expiryDates); } } catch (Exception e) { LogProvider.Log.Error(this, "Could not obtain expiry dates", e); var expiryDates = serialHashes.Select(x => DateTime.MaxValue).ToArray(); return(expiryDates); } }