共用方式為


MockHttpRequestMiddleware.SetFallback 方法

定義

設定後援。

public void SetFallback (Func<System.Net.Http.HttpRequestMessage,System.Net.Http.HttpResponseMessage> fallback);
member this.SetFallback : Func<System.Net.Http.HttpRequestMessage, System.Net.Http.HttpResponseMessage> -> unit
Public Sub SetFallback (fallback As Func(Of HttpRequestMessage, HttpResponseMessage))

參數

fallback
Func<HttpRequestMessage,HttpResponseMessage>

新的後援或 Null。

適用於