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

            _serviceRpc    = new ServiceJsonRpcEx(serviceStream, callbackTarget);
            _remoteDataRpc = dataRpc;
        }
Esempio n. 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;
        }