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);
}