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.5.0+1873145cbc26e0312d9481234d69ce7dc68aac4e
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