SendGridTargetWriteAsyncTask(LogEventInfo, CancellationToken) Method
Override this to provide async task for writing a single logevent.
Example of how to override this method, and call custom async method
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);
}
Namespace: InnerDrive.LoggingAssembly: InnerDrive.Logging (in InnerDrive.Logging.dll) Version: 5.2.9017.0
protected override Task WriteAsyncTask(
LogEventInfo logEvent,
CancellationToken cancellationToken
)
- logEvent LogEventInfo
- The log event.
- cancellationToken CancellationToken
- The cancellation token
Task