public static void Status(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} is '{1}'", name, manager.GetStatus(name, nameAndCredentials.Item2)); }
public static void Status(ProjectionsManager manager, string[] commandArgs) { var names = GetProjectionNames(commandArgs); foreach (var name in names) { Log("{0} is '{1}'", name, manager.GetStatus(name)); } }
Task <string> IProjectionsManagement.GetStatusAsync(string name) { Ensure.NotNullOrEmpty(name, "name"); return(_projectionsManager.GetStatus(name)); }