So I have a application which queues up files and spawns Tasks to handle the uploading on separate threads. When I try to use the sftpClient inside this thread I get an exception:
Object synchronization method was called from an unsynchronized block of code
This happens when the Connect() method is called.
How do I get the sftpClient in sync with it's parent thread?
Object synchronization method was called from an unsynchronized block of code
This happens when the Connect() method is called.
How do I get the sftpClient in sync with it's parent thread?