public static void ShowQuery(ProjectionsManager manager, string[] commandArgs) { var nameAndCredentials = GetProjectionNameAndCredentials(commandArgs); if (nameAndCredentials == null) { Log("Invalid arguments, should be: <projection-name> [<login> <password>]."); return; } var name = nameAndCredentials.Item1; Log("{0}'s query :", name); LogUnformatted(manager.GetQueryAsync(name, nameAndCredentials.Item2).Result); }