Ejemplo n.º 1
0
        //public override void DoRenameFile(string newfile)
        //{
        //    CloseConnection();
        //    base.DoRenameFile(newfile);
        //}
        //public override void DoDeleteFile()
        //{
        //    CloseConnection();
        //    base.DoDeleteFile();
        //}

        private void CloseConnection()
        {
            if (!HConnection.CallRemoveByKey(m_conn.Connection.GetConnKey()))
            {
                throw new InternalError("DAE-00192 " + Texts.Get("s_connection_cannot_be_closed"));
            }
            Async.SafeClose(m_conn.Connection);
            RealNode.CollapseNode();
            RealNode.ClearChilds();
        }
Ejemplo n.º 2
0
 public void Disconnect()
 {
     if (!EnabledDisconnect())
     {
         return;
     }
     if (!HConnection.CallRemoveByKey(m_conn.GetConnKey()))
     {
         return;
     }
     //m_conn.Close().OnFinish(delegate()
     //{
     //    OnDisconnect();
     //    CallRefresh();
     //}, RealNode.Invoker);
 }