public bool SetActiveRuntime(Func <AppQuery, AppQuery> query, string runtime) { AppResult[] results = Query(query); if (results.Length == 0) { return(false); } return(session.SetActiveRuntime(results [0], runtime)); }