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

AuthenticateServer() protected method

protected AuthenticateServer ( X509Certificate serverCertificate, bool clientCertificateRequired, bool checkCertificateRevocation ) : System.Threading.Tasks.Task
serverCertificate System.Security.Cryptography.X509Certificates.X509Certificate
clientCertificateRequired bool
checkCertificateRevocation bool
return System.Threading.Tasks.Task
            protected override Task AuthenticateServer(X509Certificate serverCertificate, bool clientCertificateRequired, bool checkCertificateRevocation)
            {
                return Task.Factory.FromAsync(
                    (callback, state) => _serverStream.BeginAuthenticateAsServer(serverCertificate, clientCertificateRequired, checkCertificateRevocation, callback, state),
                    _serverStream.EndAuthenticateAsServer,
                    state:null);
            }
        }
SslStreamSystemDefaultTest.ApmTest