public void ConfigurationSsl(SslOptions sslOptions, Func <Stream, SslStream> sslStreamFactory) { if (sslOptions == null) { throw new ArgumentNullException(nameof(sslOptions)); } if (sslStreamFactory == null) { throw new ArgumentNullException(nameof(sslStreamFactory)); } this.sslFeature = new SslFeature(sslOptions, sslStreamFactory); }
public SslFeature(SslOptions sslOptions, Func <Stream, SslStream> sslStreamFactory) { this.sslOptions = sslOptions; this.sslStreamFactory = sslStreamFactory; }