Udostępnij za pośrednictwem


ICodeLensCallbackService Interface

Definition

Important

This API is not CLS-compliant.

Represents a service provided by the CodeLens service infrastructure to allow CodeLens extensions to call back to VS.

public interface class ICodeLensCallbackService
[System.CLSCompliant(false)]
public interface ICodeLensCallbackService
public interface ICodeLensCallbackService
[<System.CLSCompliant(false)>]
type ICodeLensCallbackService = interface
type ICodeLensCallbackService = interface
Public Interface ICodeLensCallbackService
Attributes

Examples

[Import(typeof(ICodeLensCallbackService))]
private ICodeLensCallbackService callbackService;

Remarks

This is a MEF component part provided by the CodeLens service infrastructure, and can be imported by CodeLens extensions.

Methods

GetCallbackJsonRpc(IAsyncCodeLensDataPoint)
Obsolete.

Gets a JsonRpc on which the dataPoint can originate a callback to VS process.

GetCallbackJsonRpc(IAsyncCodeLensDataPointProvider)
Obsolete.

Gets a JsonRpc on which the dataPointProvider can originate a callback to VS process.

InvokeAsync(IAsyncCodeLensDataPoint, String, IReadOnlyList<Object>, CancellationToken)

Invoke a callback method in the VS process using a JSON-RPC stream tied to the supplied dataPoint.

InvokeAsync(IAsyncCodeLensDataPointProvider, String, IReadOnlyList<Object>, CancellationToken)

Invoke a callback method in the VS process using a JSON-RPC stream tied to the supplied dataPointProvider.

InvokeAsync<TResult>(IAsyncCodeLensDataPoint, String, IReadOnlyList<Object>, CancellationToken)

Invoke a callback method in the VS process using a JSON-RPC stream tied to the supplied dataPoint and get back the result.

InvokeAsync<TResult>(IAsyncCodeLensDataPointProvider, String, IReadOnlyList<Object>, CancellationToken)

Invoke a callback method in the VS process using a JSON-RPC stream tied to the supplied dataPointProvider and get back the result.

Applies to