コード例 #1
0
ファイル: Analytics.cs プロジェクト: daveRendon/kudu
        public void UnexpectedException(Exception ex, string method, string path, string result, string message, bool trace = true)
        {
            if (ex.AbortedByKudu())
            {
                return;
            }

            KuduEventSource.Log.KuduException(
                _serverConfiguration.ApplicationName,
                NullToEmptyString(method),
                NullToEmptyString(path),
                NullToEmptyString(result),
                NullToEmptyString(message),
                GetExceptionContent(ex, trace));
        }
コード例 #2
0
ファイル: Analytics.cs プロジェクト: daveRendon/kudu
        public void UnexpectedException(Exception exception, bool trace = true, string memberName = null, string sourceFilePath = null, int sourceLineNumber = 0)
        {
            if (exception.AbortedByKudu())
            {
                return;
            }

            KuduEventSource.Log.KuduException(
                _serverConfiguration.ApplicationName,
                string.Empty,
                string.Empty,
                string.Empty,
                string.Empty,
                GetExceptionContent(exception, trace, memberName, sourceFilePath, sourceLineNumber));
        }
コード例 #3
0
ファイル: Analytics.cs プロジェクト: Rhayar-dr/kudu-1
        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.GetRuntimeSiteName(),
                    NullToEmptyString(method),
                    NullToEmptyString(path),
                    NullToEmptyString(result),
                    NullToEmptyString(message),
                    GetExceptionContent(ex, trace));
            });
        }
コード例 #4
0
ファイル: Analytics.cs プロジェクト: Rhayar-dr/kudu-1
        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.GetRuntimeSiteName(),
                    string.Empty,
                    string.Empty,
                    string.Empty,
                    string.Empty,
                    GetExceptionContent(exception, trace, memberName, sourceFilePath, sourceLineNumber));
            });
        }