コード例 #1
0
            public DataPoint(
                ReferenceCodeLensProvider owner,
                ICodeLensCallbackService callbackService,
                CodeLensDescriptor descriptor,
                Stream stream)
            {
                _owner           = owner;
                _callbackService = callbackService;

                Descriptor = descriptor;

                _endPoint = new RemoteEndPoint(stream, owner._client.Logger, new RoslynCallbackTarget(Invalidate));
                _endPoint.StartListening();
            }
コード例 #2
0
            public DataPoint(
                ReferenceCodeLensProvider owner,
                ICodeLensCallbackService callbackService,
                CodeLensDescriptor descriptor,
                Stream stream)
            {
                _owner           = owner;
                _callbackService = callbackService;

                Descriptor = descriptor;

                _roslynRpc = stream.CreateStreamJsonRpc(
                    target: new RoslynCallbackTarget(Invalidate),
                    owner._client.Logger,
                    SpecializedCollections.SingletonEnumerable(AggregateJsonConverter.Instance));

                _roslynRpc.StartListening();
            }