public static void SendLaunchError(string failureCode, IOSDebugTarget target) { HostTelemetry.SendEvent(Event_LaunchError, new KeyValuePair <string, object>(Property_LaunchErrorResult, failureCode), new KeyValuePair <string, object>(Property_LaunchErrorTarget, target.ToString()) ); }
public void SendDebuggerAborted(MICommandFactory commandFactory, string lastSentCommandName, /*OPTIONAL*/ string debuggerExitCode) { List <KeyValuePair <string, object> > eventProperties = new List <KeyValuePair <string, object> >(); eventProperties.Add(new KeyValuePair <string, object>(Property_DebuggerName, commandFactory.Name)); eventProperties.Add(new KeyValuePair <string, object>(Property_LastSentCommandName, lastSentCommandName)); if (!string.IsNullOrEmpty(debuggerExitCode)) { eventProperties.Add(new KeyValuePair <string, object>(Property_DebuggerExitCode, debuggerExitCode)); } HostTelemetry.SendEvent(Event_DebuggerAborted, eventProperties.ToArray()); }
public void SendWindowsRuntimeEnvironment(WindowsRuntimeEnvironment environment) { string envValue; if (environment == WindowsRuntimeEnvironment.Cygwin) { envValue = Value_Windows_Runtime_Environment_Cygwin; } else { envValue = Value_Windows_Runtime_Environment_MinGW; } HostTelemetry.SendEvent( Windows_Runtime_Environment, new KeyValuePair <string, object>(Property_Windows_Runtime_Environment, envValue)); }
/// <summary> /// Create a DockerContainerInstance from the results of docker ps in JSON format /// </summary> public static bool TryCreate(string json, out DockerContainerInstance instance) { instance = null; try { JObject obj = JObject.Parse(json); instance = obj.ToObject <DockerContainerInstance>(); } catch (Exception e) { HostTelemetry.SendEvent(TelemetryHelper.Event_DockerPSParseFailure, new KeyValuePair <string, object>[] { new KeyValuePair <string, object>(TelemetryHelper.Property_ExceptionName, e.GetType().Name) }); string error = e.ToString(); VsOutputWindowWrapper.WriteLine(StringResources.Error_DockerPSParseFailed.FormatCurrentCultureWithArgs(json, error), StringResources.Docker_PSName); Debug.Fail(error); } return(instance != null); }
public static void SendLaunchError(string launchErrorTelemetryResult, string targetEngine) { HostTelemetry.SendEvent(Event_LaunchError, new KeyValuePair <string, object>(Property_LaunchErrorResult, launchErrorTelemetryResult), new KeyValuePair <string, object>(Property_LaunchTargetEngine, targetEngine)); }
public static void SendVcRemoteClientError(string failureCode) { HostTelemetry.SendEvent(Event_VcRemoteClientError, new KeyValuePair <string, object>(Property_VcRemoteClientErrorResult, failureCode)); }