AzureTableTargetWriteAsyncTask(LogEventInfo, CancellationToken) Method

Override this to provide async task for writing a single logevent.

Example

Example of how to override this method, and call custom async method
C#
protected override Task WriteAsyncTask(LogEventInfo logEvent, CancellationToken token)
{
   return CustomWriteAsync(logEvent, token);
}

private async Task CustomWriteAsync(LogEventInfo logEvent, CancellationToken token)
{
    await MyLogMethodAsync(logEvent, token).ConfigureAwait(false);
}

Definition

Namespace: InnerDrive.Logging
Assembly: InnerDrive.Logging (in InnerDrive.Logging.dll) Version: 5.2.9017.0
C#
protected override Task WriteAsyncTask(
	LogEventInfo logEvent,
	CancellationToken token
)

Parameters

logEvent  LogEventInfo
The log event.
token  CancellationToken
 

Return Value

Task

See Also