Click or drag to resize

AsyncHelpersWithTimeout Method

Attaches a timeout to a continuation which will invoke the continuation when the specified timeout has elapsed.

Namespace:  NLog.Common
Assembly:  NLog (in NLog.dll) Version: 5.3.1+cf6675da40ccfd4c8c526a3b2bdbeed3442910a1
Syntax
public static AsyncContinuation WithTimeout(
	AsyncContinuation asyncContinuation,
	TimeSpan timeout
)

Parameters

asyncContinuation
Type: NLog.CommonAsyncContinuation
The asynchronous continuation.
timeout
Type: SystemTimeSpan
The timeout.

Return Value

Type: AsyncContinuation
Wrapped continuation.
See Also