/// <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; } }
/// <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) { }