protected override void OnApplicationStarted(object sender, EventArgs e)
        {
            base.OnApplicationStarted(sender, e);

            if (ApplicationContext.Current.IsConfigured && GlobalSettings.DebugMode)
            {
                var appPluginFolder = IOHelper.MapPath("~/App_Plugins/");
                if (Directory.Exists(appPluginFolder))
                {
                    _mw = new ManifestWatcher(LoggerResolver.Current.Logger);
                    _mw.Start(Directory.GetDirectories(IOHelper.MapPath("~/App_Plugins/")));
                }
            }
        }
        public void Initialize()
        {
            if (_runtimeState.Debug == false)
            {
                return;
            }

            //if (ApplicationContext.Current.IsConfigured == false || GlobalSettings.DebugMode == false)
            //    return;

            var appPlugins = IOHelper.MapPath("~/App_Plugins/");

            if (Directory.Exists(appPlugins) == false)
            {
                return;
            }

            _mw = new ManifestWatcher(_logger);
            _mw.Start(Directory.GetDirectories(appPlugins));
        }