private void OnBackgroundTaskException(Exception exception)
{
if (Interlocked.CompareExchange<Exception>(ref _pendingException, exception, null) == null)
{
if (NetEventSource.IsEnabled)
{
NetEventSource.Error(this, exception.ToString());
}
Abort();
}
}