public void Initialize(InitializationEngine context) { _log.Debug("Initializing 404 handler version check"); DataAccessBaseEx dba = DataAccessBaseEx.GetWorker(); int version = dba.Check404Version(); if (version != Configuration.Configuration.CURRENT_VERSION) { _log.Debug("Older version found. Version nr. :" + version); Upgrader.Start(version); } else { Upgrader.Valid = true; } // Load all custom redirects into memory CustomRedirectHandler handler = CustomRedirectHandler.Current; }
// ReSharper restore UnusedAutoPropertyAccessor.Local public void Initialize(InitializationEngine context) { Logger.Debug("Initializing 404 handler version check"); var dba = DataAccessBaseEx.GetWorker(); var version = dba.Check404Version(); if (version != Configuration.Configuration.CurrentVersion) { Logger.Debug("Older version found. Version nr. :" + version); Upgrader.Start(version); } else { Upgrader.Valid = true; } // Load all custom redirects into memory // TODO: create better load of the cache var handler = CustomRedirectHandler.Current; }