Exemple #1
0
 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.DeleteAsync(name, nameAndCredentials.Item2).Wait();
     Log("{0} deleted", name);
 }