| 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
)
Public Shared Function PreventMultipleCalls (
asyncContinuation As AsyncContinuation
) As AsyncContinuation
Dim asyncContinuation As AsyncContinuation
Dim returnValue As AsyncContinuation
returnValue = AsyncHelpers.PreventMultipleCalls(asyncContinuation)
static member PreventMultipleCalls :
asyncContinuation : AsyncContinuation -> AsyncContinuation
Parameters
- asyncContinuation
- Type: NLog.CommonAsyncContinuation
The asynchronous continuation.
Return Value
Type:
AsyncContinuationWrapped asynchronous continuation.
See Also