ActivityTracingStrategy.ApplyInboundActivity(JsonRpcRequest) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將接收 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 伺服器方法結束時還原此方法所取得的效果。