예제 #1
0
        public async Task <IRpcContext <TMessage> > StartConnectAsync(EndPoint remoteAddress)
        {
            var context = new NettyRpcMultiplexContext <TMessage> (this._bootstrap, this._msgCodecs, this.Logger);
            await context.InitAsync(remoteAddress, _clientOption?.Value);

            context.BindDisconnect(this);
            return(context);
        }
예제 #2
0
        public async Task <IRpcContext <TMessage> > ConnectAsync(EndPoint endpoint)
        {
            var context = new NettyRpcMultiplexContext <TMessage>(this._bootstrap, this._msgCodecs);
            await context.InitAsync(endpoint, _clientOption?.Value);

            context.BindDisconnect(this);
            return(context);
        }