Beispiel #1
0
        public JsonRpcConnection(
            object callbackTarget,
            Stream serviceStream,
            ReferenceCountedDisposable <RemotableDataJsonRpc> dataRpc)
        {
            Contract.ThrowIfNull(dataRpc);

            _serviceRpc    = new ServiceJsonRpcEx(serviceStream, callbackTarget);
            _remoteDataRpc = dataRpc;
        }
Beispiel #2
0
        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;
        }