示例#1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: ClientInitializer(SslPolicy sslPolicy, Bucket bucket) throws javax.net.ssl.SSLException
            internal ClientInitializer(SecureClient outerInstance, SslPolicy sslPolicy, Bucket bucket)
            {
                this._outerInstance = outerInstance;
                this.SslContext     = sslPolicy.NettyClientContext();
                this.Bucket         = bucket;
                this.SslPolicy      = sslPolicy;
            }
示例#2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public SecureClient(SslPolicy sslPolicy) throws javax.net.ssl.SSLException
        public SecureClient(SslPolicy sslPolicy)
        {
            _eventLoopGroup = new NioEventLoopGroup();
            _bootstrap      = (new Bootstrap()).group(_eventLoopGroup).channel(typeof(NioSocketChannel)).handler(new ClientInitializer(this, sslPolicy, _bucket));
        }
示例#3
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public SecureServer(SslPolicy sslPolicy) throws javax.net.ssl.SSLException
        public SecureServer(SslPolicy sslPolicy)
        {
            this._sslContext = sslPolicy.NettyServerContext();
        }