TestServer.SendAsync(Action<HttpContext>, CancellationToken) 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.
Creates, configures, sends, and returns a HttpContext. This completes as soon as the response is started.
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)
Parameters
- configureContext
- Action<HttpContext>
- cancellationToken
- CancellationToken