Ejemplo n.º 1
0
 public void AddServicePoint()
 {
     ServicePoint s = new ServicePoint();
     _spList.Add(s);
     s.RegisterObserver(this);
     s.Start();
     NotifyObservers();
 }
Ejemplo n.º 2
0
        public ServicePointSystem()
        {
            _observers = new List<iSPSObserver>();
            _spList = new List<ServicePoint>();

            for (int i = 0; i < Store.Get().StoreParams.MaximumServicePoints; i++) //#ANDRE
            {
                ServicePoint s = new ServicePoint();
                _spList.Add(s);
                s.RegisterObserver(this);
                if (i < Store.Get().StoreParams.InitialServicePoints)
                    s.Start();
            }

            NotifyObservers();
        }