Exemplo n.º 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 { }
        }
Exemplo n.º 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 { }
        }