Table of Contents

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 CancellationToken

The 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 LogEventInfo

The log event to write.

cancellationToken CancellationToken

The cancellation token.

Returns

Task

A task representing the asynchronous write operation.