예제 #1
0
        public static void LogTargetFramework(Version targetFrameworkVersion)
        {
            if (targetFrameworkVersion == null)
            {
                return;
            }

            try {
                s_TelemetryLogger.Write(
                    TargetFrameworkEventName,
                    TelemetryEventSource.MeasuresOptions(),
                    new TargetFrameworkTelemetryData()
                {
                    AppID           = s_AppID,
                    TargetFramework = targetFrameworkVersion.ToString()
                }
                    );
            }
            catch { }
        }
예제 #2
0
        public static void LogHttpHandler(Type httpHandlerType)
        {
            if (httpHandlerType == null)
            {
                return;
            }

            try {
                s_TelemetryLogger.Write(
                    HttpHandlerEventName,
                    TelemetryEventSource.MeasuresOptions(),
                    new HttpHandlerTelemetryData()
                {
                    AppID           = s_AppID,
                    HttpHandlerType = GetHashCode(httpHandlerType.AssemblyQualifiedName)
                }
                    );
            }
            catch { }
        }