internal static void CheckMaintenanceExpiration()
 {
     try
     {
         MaintenanceExpirationHelper.log.Debug((object)"Check Maintenance expiration");
         int expirationWarningDays = BusinessLayerSettings.Instance.MaintenanceExpirationWarningDays;
         Dictionary <string, MaintenanceExpirationNotificationItemDAL.ExpirationInfo> moduleExpirations = new Dictionary <string, MaintenanceExpirationNotificationItemDAL.ExpirationInfo>();
         ILicensingDAL licensing = (ILicensingDAL) new LicensingDAL();
         using (IEnumerator <LicenseInfoModel> enumerator = ((IEnumerable <LicenseInfoModel>)licensing.GetLicenses()).Where <LicenseInfoModel>((Func <LicenseInfoModel, bool>)(lic => !lic.get_IsHidden() && !lic.get_IsEvaluation() && !licensing.get_DefaultLicenseFilter().Contains <string>(lic.get_ProductName(), (IEqualityComparer <string>)StringComparer.OrdinalIgnoreCase))).GetEnumerator())
         {
             while (((IEnumerator)enumerator).MoveNext())
             {
                 LicenseInfoModel current = enumerator.Current;
                 if (MaintenanceExpirationHelper.log.get_IsDebugEnabled())
                 {
                     MaintenanceExpirationHelper.log.Debug((object)string.Format("Module:{0} MaintenanceTo:{1} DaysLeft:{2}", (object)current.get_LicenseName(), (object)current.get_MaintenanceExpiration().Date, (object)current.get_DaysRemainingCount()));
                 }
                 if (current.get_DaysRemainingCount() <= expirationWarningDays)
                 {
                     MaintenanceExpirationNotificationItemDAL.ExpirationInfo expirationInfo = new MaintenanceExpirationNotificationItemDAL.ExpirationInfo()
                     {
                         DaysToExpire  = current.get_DaysRemainingCount(),
                         ActivationKey = current.get_LicenseKey()
                     };
                     moduleExpirations[current.get_LicenseName()] = expirationInfo;
                 }
             }
         }
         if (moduleExpirations.Count > 0)
         {
             MaintenanceExpirationHelper.log.Debug((object)string.Format("{0} products found to be notified", (object)moduleExpirations.Count));
             MaintenanceExpirationNotificationItemDAL.Show(moduleExpirations);
         }
         else
         {
             MaintenanceExpirationNotificationItemDAL.Hide();
         }
     }
     catch (Exception ex)
     {
         MaintenanceExpirationHelper.log.Warn((object)"Exception while checking maintenance expiration status: ", ex);
     }
 }
 // Token: 0x0600035B RID: 859 RVA: 0x00014CC0 File Offset: 0x00012EC0
 internal static void CheckMaintenanceExpiration()
 {
     try
     {
         MaintenanceExpirationHelper.log.Debug("Check Maintenance expiration");
         int maintenanceExpirationWarningDays = BusinessLayerSettings.Instance.MaintenanceExpirationWarningDays;
         Dictionary <string, MaintenanceExpirationNotificationItemDAL.ExpirationInfo> dictionary = new Dictionary <string, MaintenanceExpirationNotificationItemDAL.ExpirationInfo>();
         ILicensingDAL licensing = new LicensingDAL();
         foreach (LicenseInfoModel licenseInfoModel in from lic in licensing.GetLicenses()
                  where !lic.IsHidden && !lic.IsEvaluation && !licensing.DefaultLicenseFilter.Contains(lic.ProductName, StringComparer.OrdinalIgnoreCase)
                  select lic)
         {
             if (MaintenanceExpirationHelper.log.IsDebugEnabled)
             {
                 MaintenanceExpirationHelper.log.Debug(string.Format("Module:{0} MaintenanceTo:{1} DaysLeft:{2}", licenseInfoModel.LicenseName, licenseInfoModel.MaintenanceExpiration.Date, licenseInfoModel.DaysRemainingCount));
             }
             if (licenseInfoModel.DaysRemainingCount <= maintenanceExpirationWarningDays)
             {
                 MaintenanceExpirationNotificationItemDAL.ExpirationInfo value = new MaintenanceExpirationNotificationItemDAL.ExpirationInfo
                 {
                     DaysToExpire  = licenseInfoModel.DaysRemainingCount,
                     ActivationKey = licenseInfoModel.LicenseKey
                 };
                 dictionary[licenseInfoModel.LicenseName] = value;
             }
         }
         if (dictionary.Count > 0)
         {
             MaintenanceExpirationHelper.log.Debug(string.Format("{0} products found to be notified", dictionary.Count));
             MaintenanceExpirationNotificationItemDAL.Show(dictionary);
         }
         else
         {
             MaintenanceExpirationNotificationItemDAL.Hide();
         }
     }
     catch (Exception ex)
     {
         MaintenanceExpirationHelper.log.Warn("Exception while checking maintenance expiration status: ", ex);
     }
 }