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