public void UnexpectedException(Exception ex, string method, string path, string result, string message, bool trace = true)
{
// this happen during unexpected situation and should not throw (masking the original exception)
OperationManager.SafeExecute(() =>
{
if (ex.AbortedByKudu())
{
return;
}
KuduEventSource.Log.KuduException(
_serverConfiguration.ApplicationName,
NullToEmptyString(method),
NullToEmptyString(path),
NullToEmptyString(result),
NullToEmptyString(message),
GetExceptionContent(ex, trace));
});
}