|
I'm using Rebex FTP library (plain old FTP, no security needed). I'm working asynchronously, in a multi-threaded environment, so the code in my class looks pretty much like this:
The QuestionsLet's say that there's a so-called race between 2 threads: Thread A calls the
Thanks! |
|
To 1.) If the Ftp object was disposed before finishing the BeginXXX method, an
To 2.) Ones the BeginXXX method was successfully called, the callback method will be executed always (even the object has been already disposed). If an exception occurred during the background operation, calling the EndXXX method will throw an I understand your answer, but it raises another question: Regarding the
(21 Apr '11, 13:09)
Ron Klein
|
|
The whole Ftp class is thread safe. Let suppose 3 cases:
Thanks! :-)
(21 Apr '11, 13:35)
Ron Klein
|