| 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
)
Protected Overridable Function WriteAsyncTask (
logEvents As IList(Of LogEventInfo),
cancellationToken As CancellationToken
) As Task
Dim logEvents As IList(Of LogEventInfo)
Dim cancellationToken As CancellationToken
Dim returnValue As Task
returnValue = Me.WriteAsyncTask(logEvents,
cancellationToken)
abstract WriteAsyncTask :
logEvents : IList<LogEventInfo> *
cancellationToken : CancellationToken -> Task
override WriteAsyncTask :
logEvents : IList<LogEventInfo> *
cancellationToken : CancellationToken -> Task
Parameters
- logEvents
- Type: System.Collections.GenericIListLogEventInfo
A batch of logevents. - cancellationToken
- Type: System.ThreadingCancellationToken
The cancellation token
Return Value
Type:
TaskSee Also