| FileTargetConcurrentWriteAttemptDelay Property |
Gets or sets the delay in milliseconds to wait before attempting to write to the file again.
Namespace:
NLog.Targets
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public int ConcurrentWriteAttemptDelay { get; set; }
Public Property ConcurrentWriteAttemptDelay As Integer
Get
Set
Dim instance As FileTarget
Dim value As Integer
value = instance.ConcurrentWriteAttemptDelay
instance.ConcurrentWriteAttemptDelay = value
member ConcurrentWriteAttemptDelay : int with get, set
Property Value
Type:
Int32Remarks
The actual delay is a random value between 0 and the value specified
in this parameter. On each failed attempt the delay base is doubled
up to
ConcurrentWriteAttempts times.
Examples
Assuming that ConcurrentWriteAttemptDelay is 10 the time to wait will be:
a random value between 0 and 10 milliseconds - 1st attempt
a random value between 0 and 20 milliseconds - 2nd attempt
a random value between 0 and 40 milliseconds - 3rd attempt
a random value between 0 and 80 milliseconds - 4th attempt
...
and so on.
See Also