Interface ISslStreamFactory
SSL Stream Factory defines how SSL connection is established.
See SslStreamFactory, SslStreamFactory.public interface ISslStreamFactory
Methods
CreateAsync(Stream, string, CancellationToken)
Creates the SSL stream.
Task<SslStream?> CreateAsync(Stream stream, string targetHost, CancellationToken cancellationToken)
Parameters
streamStreamThe underlying raw stream.
targetHoststringTarget host.
cancellationTokenCancellationTokenCancellation token.