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(); }
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(); }