You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by dca00 November 10, 2022
In a simple console app, I pass to SftpClient.SftpUpload() a callback that writes progress to console. Before and after the call I write 'Start' and 'End'. Below is its output:
for future readers: UploadFile callbacks run on the threadpool. Use UploadFileAsync taking an IProgress parameter for better control (e.g. post it to a SynchronizationContext of choice)
Activity
Rob-Hague commentedon Oct 19, 2026
for future readers: UploadFile callbacks run on the threadpool. Use
UploadFileAsynctaking anIProgressparameter for better control (e.g. post it to aSynchronizationContextof choice)