Esempio n. 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.Delete(name, nameAndCredentials.Item2);
     Log("{0} deleted", name);
 }
Esempio n. 2
0
 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);
     }
 }
Esempio n. 3
0
 Task IProjectionsManagement.DeleteAsync(string name)
 {
     Ensure.NotNullOrEmpty(name, "name");
     return(_projectionsManager.Delete(name));
 }