Udostępnij za pośrednictwem


TestServer.SendAsync(Action<HttpContext>, CancellationToken) Metoda

Definicja

Tworzy, konfiguruje, wysyła i zwraca wartość HttpContext. Zostanie to ukończone natychmiast po uruchomieniu odpowiedzi.

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)

Parametry

configureContext
Action<HttpContext>
cancellationToken
CancellationToken

Zwraca

Dotyczy