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
logEventsIList<LogEventInfo>The list of log events to write.
cancellationTokenCancellationTokenThe 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
logEventLogEventInfoThe log event to write.
cancellationTokenCancellationTokenThe cancellation token.
Returns
- Task
A task representing the asynchronous write operation.