Calling the ApplicationManager.ShutdownApplication(string) method is equivalent to calling the HostingEnvironment.InitiateShutdown method for a specific application domain; however, the ApplicationManager.ShutdownApplication(string) method can be called from outside managed application domains.