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
stream
StreamThe underlying raw stream.
targetHost
stringTarget host.
cancellationToken
CancellationTokenCancellation token.