Exemplo n.º 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));
        }
Exemplo n.º 2
0
        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();
        }
Exemplo n.º 3
0
 public IEnumerable <ILaunchPlan> GetPlanRepo()
 {
     return(impl.GetPlanRepo());
 }