I'm not entirely sure what is actually the question...
Calling Ftp
object's Dispose
method closes its underlying connections and aborts all pending operations in that FTP session. Dispose
can be called at any time, regardless the current state of the Ftp
instance.
On the other hand, Disconnect
method ends the connection gracefully (by sending the QUIT
command) and can only be called when the Ftp
object is not busy performing another action.