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