Esempio n. 1
0
 public static void UpdateQuery(ProjectionsManager manager, string[] commandArgs)
 {
     var queryInfo = GetQueryAndCredentials(commandArgs);
     if (queryInfo == null)
     {
         Log("Invalid arguments for command update query");
         return;
     }
     var pname = queryInfo.Item1;
     var query = queryInfo.Item2;
     var userCredentials = queryInfo.Item3;
     Log("Updating query of {0}...", pname);
     manager.UpdateQueryAsync(pname, query, userCredentials).Wait();
     Log("Query updated");
 }