Click or drag to resize

AsyncTaskTargetRetryFailedAsyncTask Method

Handle cleanup after failed write operation

Namespace:  NLog.Targets
Assembly:  NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntax
protected virtual bool RetryFailedAsyncTask(
	Exception exception,
	CancellationToken cancellationToken,
	int retryCountRemaining,
	out TimeSpan retryDelay
)

Parameters

exception
Type: SystemException
Exception from previous failed Task
cancellationToken
Type: System.ThreadingCancellationToken
The cancellation token
retryCountRemaining
Type: SystemInt32
Number of retries remaining
retryDelay
Type: SystemTimeSpan
Time to sleep before retrying

Return Value

Type: Boolean
Should attempt retry
See Also