Click or drag to resize

AsyncTaskTargetWriteAsyncTask Method (IListLogEventInfo, CancellationToken)

Override this to provide async task for writing a batch of logevents.

Namespace:  NLog.Targets
Assembly:  NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax
protected virtual Task WriteAsyncTask(
	IList<LogEventInfo> logEvents,
	CancellationToken cancellationToken
)

Parameters

logEvents
Type: System.Collections.GenericIListLogEventInfo
A batch of logevents.
cancellationToken
Type: System.ThreadingCancellationToken
The cancellation token

Return Value

Type: Task
See Also