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)); }
public Dictionary <AppIdTuple, AppState> GetAllAppsState() { return(impl.GetAllAppsState()); }