다음을 통해 공유


LanguageServer.OnDataReceivedAsync Method

Definition

Overloads

OnDataReceivedAsync(LanguageServerInput, CancellationToken)

Asynchronously process the incoming request/notification payload from client.

OnDataReceivedAsync(String, CancellationToken)

Asynchronously process the incoming request/notification payload from client.

OnDataReceivedAsync(LanguageServerInput, CancellationToken)

Asynchronously process the incoming request/notification payload from client.

public System.Threading.Tasks.Task<string> OnDataReceivedAsync(Microsoft.PowerFx.LanguageServerProtocol.LanguageServerInput input, System.Threading.CancellationToken cancellationToken = default);
member this.OnDataReceivedAsync : Microsoft.PowerFx.LanguageServerProtocol.LanguageServerInput * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function OnDataReceivedAsync (input As LanguageServerInput, Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)

Parameters

input
LanguageServerInput

Parsed Language Server Input.

cancellationToken
CancellationToken

Cancellation Token.

Returns

Response to be sent to the client.

Applies to

OnDataReceivedAsync(String, CancellationToken)

Asynchronously process the incoming request/notification payload from client.

public System.Threading.Tasks.Task<string> OnDataReceivedAsync(string jsonRpcPayload, System.Threading.CancellationToken cancellationToken = default);
member this.OnDataReceivedAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Function OnDataReceivedAsync (jsonRpcPayload As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)

Parameters

jsonRpcPayload
String

Raw Input from the client.

cancellationToken
CancellationToken

Cancellation Token.

Returns

Response to be sent to the client.

Applies to