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 { } }
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 { } }