Dev2.ServerLifecycleManager.CleanupServer C# (CSharp) Метод

CleanupServer() приватный Метод

Performs all necessary cleanup such that the server is gracefully moved to a state that does not allow workflow execution.
private CleanupServer ( ) : bool
Результат bool
        internal bool CleanupServer()
        {
            bool result = true;

            try
            {
                if(_owinServer != null)
                {
                    _owinServer.Dispose();
                    _owinServer = null;
                }
            }
            catch(Exception ex)
            {
                LogException(ex);
                result = false;
            }

            try
            {
                DebugDispatcher.Instance.Shutdown();
            }
            catch(Exception ex)
            {
                LogException(ex);
                result = false;
            }

            // shutdown the storage layer ;)
            try
            {
   
            }
            catch(Exception e)
            {
                LogException(e);
            }

            TerminateGcManager();

            return result;
        }