I agree, the names are confusing and could be better named.
- Guest
SessionOptions.Timeout[InMilliseconds]
is session timeout (as in WinSCP GUI session options).
Session.Timeout
is timeout for communication between the assembly and the winscp.exe
.
SessionOptions sessionOpt = new SessionOptions
{
Protocol = Protocol.Scp,
[...]
TimeoutInMilliseconds = 120000, //2min
[...]
};
mysession.Open(sessionOpt);
mysession.Timeout = new TimeSpan(0,2,0); //2min