Click or drag to resize

AsyncHelpersPreventMultipleCalls Method

Wraps the continuation with a guard which will only make sure that the continuation function is invoked only once.

Namespace:  NLog.Common
Assembly:  NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax
public static AsyncContinuation PreventMultipleCalls(
	AsyncContinuation asyncContinuation
)

Parameters

asyncContinuation
Type: NLog.CommonAsyncContinuation
The asynchronous continuation.

Return Value

Type: AsyncContinuation
Wrapped asynchronous continuation.
See Also