Beispiel #1
0
 /// <summary> Redefine connect for FtpClient : authentication on the Proxy  </summary>
 /// <param name="stream">The socket stream.</param>
 /// <param name="token">Cancellation token.</param>
 protected override Task ConnectAsync(FtpSocketStream stream, CancellationToken token)
 {
     return(stream.ConnectAsync(Proxy.Host, Proxy.Port, InternetProtocolVersions, token));
 }
Beispiel #2
0
 /// <summary> Redefine connect for FtpClient : authentication on the Proxy  </summary>
 /// <param name="stream">The socket stream.</param>
 protected override Task ConnectAsync(FtpSocketStream stream)
 {
     return(stream.ConnectAsync(Proxy.Host, Proxy.Port, InternetProtocolVersions));
 }