Hi, (C#, .Net 4.5.2, Chilkat 188.8.131.52, Ftp2, Ftp2.ConnectAsync())
I'm trying to use the OnTaskCompleted-Event on the Ftp2 class. The Synchronous method (Connect()) works perfectly. Also the async method when using task.Wait(0). But I'd like to us ethe OnTaskCompleted-Event to don't block my thread. My code snippet:
But my Task never finishes because OnTaskCompleted is not invoked.
Thanks in advance
asked Dec 30 '15 at 03:21
I know this is confusing, but the event is actually on the ftp object, not the Task object.
ftp.OnTaskCompleted += ....
answered Dec 30 '15 at 08:05