public JsonRpcConnection( object callbackTarget, Stream serviceStream, ReferenceCountedDisposable <RemotableDataJsonRpc> dataRpc) { Contract.ThrowIfNull(dataRpc); _serviceRpc = new ServiceJsonRpcEx(serviceStream, callbackTarget); _remoteDataRpc = dataRpc; }
public JsonRpcConnection( TraceSource logger, object?callbackTarget, Stream serviceStream, ReferenceCountedDisposable <RemotableDataJsonRpc> dataRpc) { Contract.ThrowIfNull(dataRpc); _serviceRpc = new ServiceJsonRpcEx(dataRpc.Target.Workspace, logger, serviceStream, callbackTarget); _remoteDataRpc = dataRpc; }