ICancellationStrategy.IncomingRequestEnded(RequestId) Method

Definition

Cleans up any state associated with an earlier IncomingRequestStarted(RequestId, CancellationTokenSource) call.

public void IncomingRequestEnded (StreamJsonRpc.RequestId requestId);
abstract member IncomingRequestEnded : StreamJsonRpc.RequestId -> unit
Public Sub IncomingRequestEnded (requestId As RequestId)

Parameters

requestId
RequestId

The ID of the request that has been fulfilled.

Remarks

Implementations are expected to release memory allocated by a prior call to IncomingRequestStarted(RequestId, CancellationTokenSource). This method should *not* dispose of the CancellationTokenSource received previously as JsonRpc owns its lifetime.

Applies to