Ejemplo n.º 1
0
        /// <summary>
        /// Closes the connection and reads the server's reply
        /// </summary>
        public override void Close()
        {
            base.Close();

            try {
                if (ControlConnection != null)
                {
                    ControlConnection.CloseDataStream(this);
                }
            }
            finally {
                m_commandStatus = new FtpReply();
                m_control       = null;
            }
        }
Ejemplo n.º 2
0
 public FtpReply Close()
 {
     base.Close();
     try
     {
         if (this.ControlConnection != null)
         {
             return(this.ControlConnection.CloseDataStream(this));
         }
     }
     finally
     {
         this.m_commandStatus = new FtpReply();
         this.m_control       = null;
     }
     return(new FtpReply());
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Closes the connection and reads the server's reply
        /// </summary>
        public override void Close() {
            base.Close();

            try {
                if (ControlConnection != null)
                    ControlConnection.CloseDataStream(this);
            }
            finally {
                m_commandStatus = new FtpReply();
                m_control = null;
            }
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Closes the connection and reads the server's reply
        /// </summary>
        public new FtpReply Close() {
            base.Close();

            try {
                if (ControlConnection != null)
                    return ControlConnection.CloseDataStream(this);
            }
            finally {
                m_commandStatus = new FtpReply();
                m_control = null;
            }

            return new FtpReply();
        }
Ejemplo n.º 5
0
 /// <summary>
 /// Initalizes a new instance of a FtpResponseException
 /// </summary>
 /// <param name="reply">The FtpReply to build the exception from</param>
 public FtpCommandException(FtpReply reply)
     : this(reply.Code, reply.ErrorMessage) {
 }
Ejemplo n.º 6
0
 public FtpCommandException(FtpReply reply) : this(reply.Code, reply.ErrorMessage)
 {
 }