Inheritance: IInsightData
示例#1
0
        public async Task TrackEvent(string eventName, string message, [CallerMemberName] string callerName = "")
        {
            var data = new InsightData()
            {
                Category     = InsightCategory.Event,
                Message      = message,
                CustomMarker = eventName,
                CallerName   = callerName
            };

            await FillData(data);

            Store(data);
        }
示例#2
0
        public async Task TrackMetric(string category, object value, [CallerMemberName] string callerName = "")
        {
            var data = new InsightData()
            {
                Category     = InsightCategory.Metric,
                CustomMarker = category,
                CustomValue  = value,
                CallerName   = callerName
            };

            await FillData(data);

            Store(data);
        }
示例#3
0
        public async Task TrackException(Exception ex, [CallerMemberName] string callerName = "")
        {
            var data = new InsightData()
            {
                Category   = InsightCategory.Exception,
                Message    = ex.Message,
                StackTrace = ex.StackTrace,
                CallerName = callerName
            };

            await FillData(data);

            Store(data);
        }
示例#4
0
        public async Task TrackMetric(string category, object value, [CallerMemberName] string callerName = "")
        {
            try
            {
                var data = new InsightData()
                {
                    Category     = InsightCategory.Metric,
                    CustomMarker = category,
                    CustomValue  = value,
                    CallerName   = callerName
                };

                await FillInThreadData(data);

                Finalize(data);
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex.Message);
            }
        }
示例#5
0
        public async Task TrackEvent(string eventName, string message, [CallerMemberName] string callerName = "")
        {
            try
            {
                var data = new InsightData()
                {
                    Category     = InsightCategory.Event,
                    Message      = message,
                    CustomMarker = eventName,
                    CallerName   = callerName
                };

                await FillInThreadData(data);

                Finalize(data);
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex.Message);
            }
        }
示例#6
0
        public async Task TrackException(Exception exception, [CallerMemberName] string callerName = "")
        {
            try
            {
                var data = new InsightData()
                {
                    Category   = InsightCategory.Exception,
                    Message    = exception.Message,
                    StackTrace = exception.StackTrace,
                    CallerName = callerName
                };

                await FillInThreadData(data);

                Finalize(data);
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex.Message);
            }
        }
示例#7
0
        public async Task TrackMetric(string category, object value, [CallerMemberName] string callerName = "")
        {
            try
            {
                var data = new InsightData()
                {
                    Category = InsightCategory.Metric,
                    CustomMarker = category,
                    CustomValue = value,
                    CallerName = callerName
                };

                await FillInThreadData(data);

                Finalize(data);
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex.Message);
            }
        }
示例#8
0
        public async Task TrackEvent(string eventName, string message, [CallerMemberName] string callerName = "")
        {
            try
            {
                var data = new InsightData()
                {
                    Category = InsightCategory.Event,
                    Message = message,
                    CustomMarker = eventName,
                    CallerName = callerName
                };

                await FillInThreadData(data);

                Finalize(data);
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex.Message);
            }
        }
示例#9
0
        public async Task TrackException(Exception exception, [CallerMemberName] string callerName = "")
        {
            try
            {
                var data = new InsightData()
                {
                    Category = InsightCategory.Exception,
                    Message = exception.Message,
                    StackTrace = exception.StackTrace,
                    CallerName = callerName
                };

                await FillInThreadData(data);

                Finalize(data);
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex.Message);
            }
        }