예제 #1
0
 public static void InitiateShutdown()
 {
     if (_theHostingEnvironment != null)
     {
         _theHostingEnvironment.InitiateShutdownInternal();
     }
 }
예제 #2
0
        public void ShutdownApplication(string appId)
        {
            if (appId == null)
            {
                throw new ArgumentNullException("appId");
            }
            HostingEnvironment environment = FindAppDomainWithHostingEnvironment(appId);

            if (environment != null)
            {
                environment.InitiateShutdownInternal();
            }
        }