次の方法で共有


TestServer.SendAsync(Action<HttpContext>, CancellationToken) メソッド

定義

を作成、構成、送信、および返します HttpContext。 これは、応答が開始されるとすぐに完了します。

public System.Threading.Tasks.Task<Microsoft.AspNetCore.Http.HttpContext> SendAsync (Action<Microsoft.AspNetCore.Http.HttpContext> configureContext, System.Threading.CancellationToken cancellationToken = default);
member this.SendAsync : Action<Microsoft.AspNetCore.Http.HttpContext> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Http.HttpContext>
Public Function SendAsync (configureContext As Action(Of HttpContext), Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpContext)

パラメーター

configureContext
Action<HttpContext>
cancellationToken
CancellationToken

戻り値

適用対象