Click or drag to resize

AsyncTaskTargetRetryFailedAsyncTask Method

Handle cleanup after failed write operation

Namespace:  NLog.Targets
Assembly:  NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
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