Sisk

Method

HttpServer.WaitNext

Namespace
Sisk.Core.Http
Assembly
Sisk.Core.dll

WaitNext(TimeSpan) #

Waits for the next HTTP request to be processed, with a specified timeout.

C#
public HttpServerExecutionResult WaitNext(TimeSpan timeout = default)

Parameters #

timeout TimeSpan

The time span to wait for the next request. If not specified, the default timeout is used.

Returns #

HttpServerExecutionResult

The result of the HTTP server execution.

WaitNext(CancellationToken) #

Waits for the next HTTP request to be processed, with a specified cancellation token.

C#
public HttpServerExecutionResult WaitNext(CancellationToken cancellation = default)

Parameters #

cancellation CancellationToken

The cancellation token to signal when the operation should be cancelled.

Returns #

HttpServerExecutionResult

The result of the HTTP server execution.

Type to search the documentation and the API reference.