| SetupLoadConfigurationExtensionsWithBuffering Method |
Namespace:
NLog
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public static ISetupConfigurationTargetBuilder WithBuffering(
this ISetupConfigurationTargetBuilder configBuilder,
int? bufferSize = null,
TimeSpan? flushTimeout = null,
bool? slidingTimeout = null,
BufferingTargetWrapperOverflowAction? overflowAction = null
)
<ExtensionAttribute>
Public Shared Function WithBuffering (
configBuilder As ISetupConfigurationTargetBuilder,
Optional bufferSize As Integer? = Nothing,
Optional flushTimeout As TimeSpan? = Nothing,
Optional slidingTimeout As Boolean? = Nothing,
Optional overflowAction As BufferingTargetWrapperOverflowAction? = Nothing
) As ISetupConfigurationTargetBuilder
Dim configBuilder As ISetupConfigurationTargetBuilder
Dim bufferSize As Integer?
Dim flushTimeout As TimeSpan?
Dim slidingTimeout As Boolean?
Dim overflowAction As BufferingTargetWrapperOverflowAction?
Dim returnValue As ISetupConfigurationTargetBuilder
returnValue = configBuilder.WithBuffering(bufferSize,
flushTimeout, slidingTimeout, overflowAction)
[<ExtensionAttribute>]
static member WithBuffering :
configBuilder : ISetupConfigurationTargetBuilder *
?bufferSize : Nullable<int> *
?flushTimeout : Nullable<TimeSpan> *
?slidingTimeout : Nullable<bool> *
?overflowAction : Nullable<BufferingTargetWrapperOverflowAction>
(* Defaults:
let _bufferSize = defaultArg bufferSize null
let _flushTimeout = defaultArg flushTimeout null
let _slidingTimeout = defaultArg slidingTimeout null
let _overflowAction = defaultArg overflowAction null
*)
-> ISetupConfigurationTargetBuilder
Parameters
- configBuilder
- Type: NLog.ConfigISetupConfigurationTargetBuilder
Fluent interface parameter. - bufferSize (Optional)
- Type: SystemNullableInt32
Buffer size limit for pending logevents - flushTimeout (Optional)
- Type: SystemNullableTimeSpan
Timeout for when the buffer will flush automatically using background thread - slidingTimeout (Optional)
- Type: SystemNullableBoolean
Restart timeout when logevent is written - overflowAction (Optional)
- Type: SystemNullableBufferingTargetWrapperOverflowAction
Action to take when buffer overflows
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