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); }
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); }