Task IProjectionsManagement.UpdateQueryAsync(string name, string query) { Ensure.NotNullOrEmpty(name, "name"); Ensure.NotNullOrEmpty(query, "query"); return(_projectionsManager.UpdateQuery(name, query)); }
public static void UpdateQuery(ProjectionsManager manager, string[] commandArgs) { string pname; var query = GetQuery(commandArgs, out pname); if (query != null) { Log("Updating query of {0}...", pname); manager.UpdateQuery(pname, query); Log("Query updated"); } else Log("Invalid arguments for command update query"); }
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.UpdateQuery(pname, query, userCredentials); Log("Query updated"); }