Beispiel #1
0
 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);
 }
Beispiel #3
0
 public static IAsyncResult BeginAuthenticateAsClient(this SslStream sslStream, string targetHost, AsyncCallback callback, object state)
 {
     return sslStream.AuthenticateAsClientAsync(targetHost).ToAsyncResult(callback, state);
 }