Click or drag to resize

SetupLoadConfigurationExtensionsWithBuffering Method

Applies BufferingTargetWrapper for existing Targets for throttled writing

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
)

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: ISetupConfigurationTargetBuilder

Usage 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