Figure out what was done, in the DoneDelegate even (General questions)

by subcubes @, (7085 days ago)

Hi.

How can I find it, what was done, when the DoneDelegate event i called.

I had hoped, that there where some info in the SFTP.DoneArgs argument, that could tell me some info about what SFTP just finished doing.

What I want, is to be able to download a file, then run System.Diagnostics.Process.Start() on the file that where downloaded - but, since I don't know which file it was, its pretty though.

Of course, I have considered a member string in my class, which could tell my which file where download - but then, what if I am downloading two files in seperate threads, how whould I know which one I should run Process.Start() on?

Regards
Torben Lajer

locked

Re: Figure out what was done, in the DoneDelegate

by Jasmine, (7085 days ago) @ subcubes

Torben,

you can't download two files in the same time with same instance of wodSFTP. Perhaps RemotePath property could help you determine filename?

locked

Re: Figure out what was done, in the DoneDelegate

by subcubes @, (7085 days ago) @ Jasmine

Whow, reply within 3 minutes, that is just excellent.

I will try to modify my code - since the SFTP protocol does not support downloading of two files in the same time, I guess I will make multiple instances of the protocol instead.

Either way, thanks for your fast reply.

locked