static private AuthenticateAsClientAsync ( this source, string targetHost ) : System.Threading.Tasks.Task | ||
source | this | |
targetHost | string | |
return | System.Threading.Tasks.Task |
internal static Task AuthenticateAsClientAsync(this System.Net.Security.SslStream source,
string targetHost)
{
return Task.Factory.FromAsync(
(c, s) => source.BeginAuthenticateAsClient(targetHost, c, s),
(r) => source.EndAuthenticateAsClient(r),
null);
}
TaskExtensions::AuthenticateAsClientAsync ( this source, string targetHost, System clientCertificates, System enabledSslProtocols, bool checkCertificateRevocation ) : System.Threading.Tasks.Task |