public static IAsyncResult BeginAuthenticateAsClient( this SslStream sslStream, string targetHost, X509CertificateCollection clientCerts, SslProtocols enabledProtocols, bool checkRevocation, AsyncCallback callback, object state) { return sslStream.AuthenticateAsClientAsync(targetHost, clientCerts, enabledProtocols, checkRevocation).ToAsyncResult(callback, state); }
public static IAsyncResult BeginAuthenticateAsClient( this SslStream s, string targetHost, X509CertificateCollection clientCertificates, SslProtocols enabledSslProtocols, bool checkCertificateRevocation, AsyncCallback asyncCallback, Object asyncState) { return s.AuthenticateAsClientAsync( targetHost, clientCertificates, enabledSslProtocols, checkCertificateRevocation).ToApm(asyncCallback, asyncState); }
public static IAsyncResult BeginAuthenticateAsClient(this SslStream sslStream, string targetHost, AsyncCallback callback, object state) { return sslStream.AuthenticateAsClientAsync(targetHost).ToAsyncResult(callback, state); }