| 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
)
Protected Overridable Function RetryFailedAsyncTask (
exception As Exception,
cancellationToken As CancellationToken,
retryCountRemaining As Integer,
<OutAttribute> ByRef retryDelay As TimeSpan
) As Boolean
Dim exception As Exception
Dim cancellationToken As CancellationToken
Dim retryCountRemaining As Integer
Dim retryDelay As TimeSpan
Dim returnValue As Boolean
returnValue = Me.RetryFailedAsyncTask(exception,
cancellationToken, retryCountRemaining,
retryDelay)
abstract RetryFailedAsyncTask :
exception : Exception *
cancellationToken : CancellationToken *
retryCountRemaining : int *
retryDelay : TimeSpan byref -> bool
override RetryFailedAsyncTask :
exception : Exception *
cancellationToken : CancellationToken *
retryCountRemaining : int *
retryDelay : TimeSpan byref -> bool
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:
BooleanShould attempt retry
See Also