예제 #1
0
        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));
        }
예제 #2
0
 public Dictionary <AppIdTuple, AppState> GetAllAppsState()
 {
     return(impl.GetAllAppsState());
 }