System.Net.Security.Tests.SslStreamSystemDefaultTest.ApmTest.AuthenticateClient C# (CSharp) Method

AuthenticateClient() protected method

protected AuthenticateClient ( string targetHost, X509CertificateCollection clientCertificates, bool checkCertificateRevocation ) : System.Threading.Tasks.Task
targetHost string
clientCertificates System.Security.Cryptography.X509Certificates.X509CertificateCollection
checkCertificateRevocation bool
return System.Threading.Tasks.Task
            protected override Task AuthenticateClient(string targetHost, X509CertificateCollection clientCertificates, bool checkCertificateRevocation)
            {
                return Task.Factory.FromAsync(
                    (callback, state) => _clientStream.BeginAuthenticateAsClient(targetHost, clientCertificates, checkCertificateRevocation, callback, state), 
                    _clientStream.EndAuthenticateAsClient, 
                    state:null);
            }
SslStreamSystemDefaultTest.ApmTest