Beispiel #1
0
        protected VisualizerInstanceInfo LaunchNewInstance()
        {
            // TODO: don't hardcode this / configure this somehow?
            var exePath = @"C:\Users\joshua.webb\Documents\Visual Studio 2015\Projects\AsyncDebuggerVisualizerTest\AsyncDebuggerVisualizerTest\bin\Debug\AsyncDebuggerVisualizerTest.App.exe";
            var process = Process.Start(exePath);

            CommunicationHelper.WaitForProcessToStartListeningOnAPort(process.Id);

            var newInstances     = FindVisualizerInstances();
            var launchedInstance = newInstances.Single(i => i.ProcessId == process.Id);

            return(launchedInstance);
        }