Method WriteAsyncTask
- Namespace
- Innova.NLogExtensions
- Assembly
- Innova.NLogExtensions.dll
WriteAsyncTask(IList<LogEventInfo>, CancellationToken)
Writes the log events to the database asynchronously.
protected override Task WriteAsyncTask(IList<LogEventInfo> logEvents, CancellationToken cancellationToken)
Parameters
logEvents
IList<LogEventInfo>The list of log events to write.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task
A task representing the asynchronous write operation.
WriteAsyncTask(LogEventInfo, CancellationToken)
Writes the log event to the database asynchronously.
protected override Task WriteAsyncTask(LogEventInfo logEvent, CancellationToken cancellationToken)
Parameters
logEvent
LogEventInfoThe log event to write.
cancellationToken
CancellationTokenThe cancellation token.
Returns
- Task
A task representing the asynchronous write operation.