語言

IActivityTracingStrategy.ApplyInboundActivity(JsonRpcRequest) 方法

定義

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

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

參數

request
JsonRpcRequest

收到的 RPC 請求。

傳回

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

備註

無論輸入請求中是否識別到某活動,此方法皆可被調用。 request如有需要,可由回傳IDisposable值來參考。

適用於