示例#1
0
        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);
        }
示例#2
0
 public SslFeature(SslOptions sslOptions, Func <Stream, SslStream> sslStreamFactory)
 {
     this.sslOptions       = sslOptions;
     this.sslStreamFactory = sslStreamFactory;
 }