語言

ActivityTracingStrategy.ApplyInboundActivity(JsonRpcRequest) 方法

定義

將接收 RPC 請求中描述的活動套用到當前上下文,讓派遣方法能繼承該內容。

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

參數

request
JsonRpcRequest

收到的 RPC 請求。

傳回

一個可選的一次性物件,可在派遣 RPC 伺服器方法結束時還原此方法所取得的效果。

實作

適用於