ShutdownAppDomain() static private method

static private ShutdownAppDomain ( ) : void
return void
        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);
        }
Example #2
0
 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");
 }
Example #3
0
 private void OnAppFileChange(object sender, FileChangeEvent e)
 {
     HttpRuntime.ShutdownAppDomain(ApplicationShutdownReason.ChangeInGlobalAsax, "Change in GLOBAL.ASAX");
 }