private void ShutdownSftpServer()
        {
            try
            {
                if (_server != null)
                {
                    _server.Bindings.Clear();
                    _server.Stop();
                }
            }
            catch
            {
                //Server may already be stopped
            }

            _server = null;
        }
Example #2
0
        protected static void ShutdownSftpServer()
        {
            try
            {
                if (Server != null)
                {
                    Dev2Logger.Log.Debug("Server Shutdown");
                    Server.Bindings.Clear();
                    Server.Stop();
                }
            }
            catch
            {
                //Server may already be stopped
            }

            Server = null;
        }