Ejemplo n.º 1
0
            public IReadOnlyList <IDebugLaunchSettings> QueryDebugTargets(
                IAsyncProject project, DebugLaunchOptions launchOptions)
            {
                IReadOnlyList <IDebugLaunchSettings> settings = null;

                taskContext.Factory.Run(async() =>
                {
                    await taskContext.Factory.SwitchToMainThreadAsync();
                    settings = await ggpDebugQueryTarget.QueryDebugTargetsAsync(
                        project, launchOptions);
                });
                if (!settings.Any())
                {
                    throw new InvalidOperationException("Unable to acquire launch settings. " +
                                                        "Make sure you have a single reserved instance, and that it is in a " +
                                                        $"healthy state. {{`ggp instance list` = \"{GetInstanceListOutput()}\"}}");
                }
                return(settings);
            }
Ejemplo n.º 2
0
 Task <IReadOnlyList <IDebugLaunchSettings> > QueryDebugTargetsAsync(
     DebugLaunchOptions launchOptions)
 {
     return(_ggpDebugQueryTarget.QueryDebugTargetsAsync(_project, launchOptions));
 }