示例#1
0
        // Token: 0x0600001D RID: 29 RVA: 0x0000235C File Offset: 0x0000055C
        internal static void TrackValueCore(DependencyObject control, string traceEvent, long value)
        {
            string featureName = TraceMonitor.GetFeatureName(control, traceEvent);

            if (featureName != null)
            {
                TraceMonitor.AnalyticsMonitor.TrackValue(featureName, value);
            }
        }
示例#2
0
        // Token: 0x0600001C RID: 28 RVA: 0x00002330 File Offset: 0x00000530
        internal static void TrackErrorCore(DependencyObject control, string traceEvent, Exception exception)
        {
            string featureName;

            if (exception != null && (featureName = TraceMonitor.GetFeatureName(control, traceEvent)) != null)
            {
                TraceMonitor.AnalyticsMonitor.TrackError(featureName, exception);
            }
        }
示例#3
0
        // Token: 0x0600001B RID: 27 RVA: 0x0000230C File Offset: 0x0000050C
        internal static void TrackFeatureStop(DependencyObject control, string traceEvent)
        {
            string featureName = TraceMonitor.GetFeatureName(control, traceEvent);

            if (featureName != null)
            {
                TraceMonitor.AnalyticsMonitor.TrackFeatureEnd(featureName);
            }
        }
示例#4
0
        // Token: 0x06000018 RID: 24 RVA: 0x00002270 File Offset: 0x00000470
        internal static void TrackAtomicFeature(DependencyObject control, string traceEvent, object value)
        {
            string text = TraceMonitor.GetFeatureName(control, traceEvent);

            if (text != null)
            {
                string text2 = (value == null) ? null : Convert.ToString(value);
                if (string.IsNullOrWhiteSpace(text2))
                {
                    text = string.Format("{0}.NULL", text);
                }
                else
                {
                    text = string.Format("{0}.{1}", text, text2);
                }
                TraceMonitor.AnalyticsMonitor.TrackAtomicFeature(text);
            }
        }