public void Init(Tcp uvCon, IComponentContext ctx, IPEndPoint endpointConfig, string connectionId) { Contract.RequiresNonNull(uvCon, nameof(uvCon)); Contract.RequiresNonNull(ctx, nameof(ctx)); Contract.RequiresNonNull(endpointConfig, nameof(endpointConfig)); PoolEndpoint = endpointConfig; rpcCon = ctx.Resolve <JsonRpcConnection>(); rpcCon.Init(uvCon, connectionId); RemoteEndpoint = rpcCon.RemoteEndPoint; Requests = rpcCon.Received; }