public void UnexpectedException(Exception exception, bool trace = true, string memberName = null, string sourceFilePath = null, int sourceLineNumber = 0)
{
// this happen during unexpected situation and should not throw (masking the original exception)
OperationManager.SafeExecute(() =>
{
if (exception.AbortedByKudu())
{
return;
}
KuduEventSource.Log.KuduException(
_serverConfiguration.ApplicationName,
string.Empty,
string.Empty,
string.Empty,
string.Empty,
GetExceptionContent(exception, trace, memberName, sourceFilePath, sourceLineNumber));
});
}