using System; using System.Collections.Generic; using System.Linq; using System.Web; using Sleis.Models; using Spring.Objects.Factory; using Sleis.Utility; using log4net; namespace Sleis.Infrastructure.Schedule { public class CashRefreshJob { internal static ILog Log = LogManager.GetLogger(typeof(CashRefreshJob)); public override string ToString() { return ReflectionUtility.GetPublicPropertiesString(this); } public void RefreshCache() { try { Log.Debug("CACHE: Refreshing..."); Sleis.Utility.LookupUtility.Init(); Log.Debug("CACHE: Refreshed"); } catch (Exception ex) { Log.Error("Cache Refresh Job Error: ", ex); //Don't throw exceptions from background jobs } } } }