Inheritance: IInsightData
Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #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);
            }
        }
Beispiel #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);
            }
        }
Beispiel #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);
            }
        }
Beispiel #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);
            }
        }
Beispiel #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);
            }
        }
Beispiel #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);
            }
        }