 | SetupLoadConfigurationExtensionsWithRetry Method |
Namespace:
NLog
Assembly:
NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntaxpublic static ISetupConfigurationTargetBuilder WithRetry(
this ISetupConfigurationTargetBuilder configBuilder,
int? retryCount = null,
TimeSpan? retryDelay = null
)
<ExtensionAttribute>
Public Shared Function WithRetry (
configBuilder As ISetupConfigurationTargetBuilder,
Optional retryCount As Integer? = Nothing,
Optional retryDelay As TimeSpan? = Nothing
) As ISetupConfigurationTargetBuilder
Dim configBuilder As ISetupConfigurationTargetBuilder
Dim retryCount As Integer?
Dim retryDelay As TimeSpan?
Dim returnValue As ISetupConfigurationTargetBuilder
returnValue = configBuilder.WithRetry(retryCount,
retryDelay)
[<ExtensionAttribute>]
static member WithRetry :
configBuilder : ISetupConfigurationTargetBuilder *
?retryCount : Nullable<int> *
?retryDelay : Nullable<TimeSpan>
(* Defaults:
let _retryCount = defaultArg retryCount null
let _retryDelay = defaultArg retryDelay null
*)
-> ISetupConfigurationTargetBuilder
Parameters
- configBuilder
- Type: NLog.ConfigISetupConfigurationTargetBuilder
Fluent interface parameter. - retryCount (Optional)
- Type: SystemNullableInt32
Number of retries that should be attempted on the wrapped target in case of a failure. - retryDelay (Optional)
- Type: SystemNullableTimeSpan
Time to wait between retries
Return Value
Type:
ISetupConfigurationTargetBuilderUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
ISetupConfigurationTargetBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also