private void OnConfigFileChange(object sender, FileChangeEvent e) { XmlSiteMapProvider parentProvider = this.ParentProvider as XmlSiteMapProvider; if (parentProvider != null) { parentProvider.OnConfigFileChange(sender, e); } this.Clear(); }
private void OnAppFileChange(Object sender, FileChangeEvent e) { // shutdown the app domain if app file changed Debug.Trace("AppDomainFactory", "Shutting down appdomain because of application file change"); string message = FileChangesMonitor.GenerateErrorMessage(e.Action, e.FileName); if (message == null) { message = "Change in GLOBAL.ASAX"; } HttpRuntime.ShutdownAppDomain(ApplicationShutdownReason.ChangeInGlobalAsax, message); }
private void OnConfigFileChange(Object sender, FileChangeEvent e) { // Notifiy the parent for the change. XmlSiteMapProvider parentProvider = ParentProvider as XmlSiteMapProvider; if (parentProvider != null) { parentProvider.OnConfigFileChange(sender, e); } Clear(); }
private void OnSubdirChange(object sender, FileChangeEvent e) { try { Interlocked.Increment(ref this._activeCallbackCount); if (!this._disposed) { FileChangeEventHandler handler = this._callbackRenameOrCriticaldirChange; if ((handler != null) && (((e.Action == FileAction.Error) || (e.Action == FileAction.Overwhelming)) || ((e.Action == FileAction.RenamedOldName) || (e.Action == FileAction.Removed)))) { HttpRuntime.SetShutdownMessage(System.Web.SR.GetString("Directory_rename_notification", new object[] { e.FileName })); handler(this, e); } } } finally { Interlocked.Decrement(ref this._activeCallbackCount); } }
private void OnCriticaldirChange(object sender, FileChangeEvent e) { try { Interlocked.Increment(ref this._activeCallbackCount); if (!this._disposed) { HttpRuntime.SetShutdownMessage(System.Web.SR.GetString("Change_notification_critical_dir")); FileChangeEventHandler handler = this._callbackRenameOrCriticaldirChange; if (handler != null) { handler(this, e); } } } finally { Interlocked.Decrement(ref this._activeCallbackCount); } }
private void OnSecurityPolicyFileChange(object sender, FileChangeEvent e) { HttpRuntime.ShutdownAppDomain(ApplicationShutdownReason.ChangeInSecurityPolicyFile, FileChangesMonitor.GenerateErrorMessage(e.Action, e.FileName) ?? "Change in code-access security policy file"); }
private void OnAppFileChange(Object sender, FileChangeEvent e) { // shutdown the app domain if app file changed Debug.Trace("AppDomainFactory", "Shutting down appdomain because of application file change"); HttpRuntime.ShutdownAppDomain("Change in GLOBAL.ASAX"); }
internal void OnConfigFileChanged(Object sender, FileChangeEvent e) { string message = FileChangesMonitor.GenerateErrorMessage(e.Action, e.FileName); HttpRuntime.OnConfigChange(message); }
private void OnAppFileChange(object sender, FileChangeEvent e) { HttpRuntime.ShutdownAppDomain(ApplicationShutdownReason.ChangeInGlobalAsax, "Change in GLOBAL.ASAX"); }
internal void OnConfigFileChanged(object sender, FileChangeEvent e) { HttpRuntime.OnConfigChange(); }
private void OnCriticalDirectoryChange(object sender, FileChangeEvent e) { ApplicationShutdownReason reason = ApplicationShutdownReason.None; string name = new DirectoryInfo(e.FileName).Name; string str = FileChangesMonitor.GenerateErrorMessage(e.Action, (string) null); string message = str != null ? str + name : name + " dir change or directory rename"; if (System.Web.Util.StringUtil.EqualsIgnoreCase(name, "App_Code")) reason = ApplicationShutdownReason.CodeDirChangeOrDirectoryRename; else if (System.Web.Util.StringUtil.EqualsIgnoreCase(name, "App_GlobalResources")) reason = ApplicationShutdownReason.ResourcesDirChangeOrDirectoryRename; else if (System.Web.Util.StringUtil.EqualsIgnoreCase(name, "App_Browsers")) reason = ApplicationShutdownReason.BrowsersDirChangeOrDirectoryRename; else if (System.Web.Util.StringUtil.EqualsIgnoreCase(name, "bin")) reason = ApplicationShutdownReason.BinDirChangeOrDirectoryRename; if (e.Action == FileAction.Added) HttpRuntime.SetUserForcedShutdown(); HttpRuntime.ShutdownAppDomain(reason, message); }
private void OnChanged(object sender, FileChangeEvent e) { this._onChangedCallback(null); }
private void OnAppOfflineFileChange(object sender, FileChangeEvent e) { HttpRuntime.SetUserForcedShutdown(); HttpRuntime.ShutdownAppDomain(ApplicationShutdownReason.ConfigurationChange, FileChangesMonitor.GenerateErrorMessage(e.Action, "App_Offline.htm") ?? "Change in App_Offline.htm"); }
internal void OnFileChanged(object sender, FileChangeEvent e) { this._callback(e.FileName); }
private void FileChange(object sender, FileChangeEvent e) { this.NotifyDependencyChanged(sender, e); }