共用方式為


TestServer.CreateHandler 方法

定義

多載

CreateHandler()

建立自訂 HttpMessageHandler ,以使用測試伺服器處理 HTTP 要求/回應。

CreateHandler(Action<HttpContext>)

使用測試伺服器的自訂群組態,建立用於處理 HTTP 要求/回應的自訂 HttpMessageHandler

CreateHandler()

來源:
TestServer.cs
來源:
TestServer.cs
來源:
TestServer.cs
來源:
TestServer.cs
來源:
TestServer.cs
來源:
TestServer.cs
來源:
TestServer.cs
來源:
TestServer.cs
來源:
TestServer.cs

建立自訂 HttpMessageHandler ,以使用測試伺服器處理 HTTP 要求/回應。

public:
 System::Net::Http::HttpMessageHandler ^ CreateHandler();
public System.Net.Http.HttpMessageHandler CreateHandler ();
member this.CreateHandler : unit -> System.Net.Http.HttpMessageHandler
Public Function CreateHandler () As HttpMessageHandler

傳回

適用於

CreateHandler(Action<HttpContext>)

來源:
TestServer.cs
來源:
TestServer.cs
來源:
TestServer.cs

使用測試伺服器的自訂群組態,建立用於處理 HTTP 要求/回應的自訂 HttpMessageHandler

public System.Net.Http.HttpMessageHandler CreateHandler (Action<Microsoft.AspNetCore.Http.HttpContext> additionalContextConfiguration);
member this.CreateHandler : Action<Microsoft.AspNetCore.Http.HttpContext> -> System.Net.Http.HttpMessageHandler
Public Function CreateHandler (additionalContextConfiguration As Action(Of HttpContext)) As HttpMessageHandler

參數

additionalContextConfiguration
Action<HttpContext>

傳回

適用於