MockHttpRequestMiddleware.SetFallback Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Set fallback.
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))
Parameters
- fallback
- Func<HttpRequestMessage,HttpResponseMessage>
New fallback or null.