void publishLocalAppState() { // get status of local apps and send to others Dictionary <AppIdTuple, AppState> localAppsState = new Dictionary <AppIdTuple, AppState>(); foreach (var plan in localOps.GetPlanRepo()) { foreach (var pair in localOps.GetAllAppsState()) { var appId = pair.Key; var appState = pair.Value; if (appId.MachineId == machineId) { localAppsState[appId] = appState; } } } client.BroadcastMessage(new AppsStateMessage(localAppsState)); }
void refreshPlans() { // check for new plans and update local copy/menu if they are different var newPlanRepo = ctrl.GetPlanRepo(); if (!newPlanRepo.SequenceEqual(planRepo)) { planRepo = new List <ILaunchPlan>(newPlanRepo); populatePlanLists(); } updatePlansStatus(); setTitle(); }
public IEnumerable <ILaunchPlan> GetPlanRepo() { return(impl.GetPlanRepo()); }