IActivityTracingStrategy.ApplyInboundActivity(JsonRpcRequest) Method

Definition

Applies an activity described in an incoming RPC request to the current context so the dispatched method can inherit it.

public IDisposable? ApplyInboundActivity (StreamJsonRpc.Protocol.JsonRpcRequest request);
abstract member ApplyInboundActivity : StreamJsonRpc.Protocol.JsonRpcRequest -> IDisposable
Public Function ApplyInboundActivity (request As JsonRpcRequest) As IDisposable

Parameters

request
JsonRpcRequest

The inbound RPC request.

Returns

An optional disposable object that can revert the effects taken by this method at the conclusion of the dispatched RPC server method.

Remarks

This method may be invoked regardless of whether an activity is identified in the incoming request. The request may be referenced by the returned IDisposable value if necessary.

Applies to