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.GetQuery(name, nameAndCredentials.Item2)); }
public static void ShowQuery(ProjectionsManager manager, string[] commandArgs) { var names = GetProjectionNames(commandArgs); foreach (var name in names) { Log("{0}'s query :", name); LogUnformatted(manager.GetQuery(name)); } }
Task <string> IProjectionsManagement.GetQueryAsync(string name) { Ensure.NotNullOrEmpty(name, "name"); return(_projectionsManager.GetQuery(name)); }