public static GlobalCoordinator GetInstance()
 {
     if (instance == null)
     {
         instance = new GlobalCoordinator();
     }
     return(instance);
 }
Пример #2
0
 protected void registerClass()
 {
     GlobalCoordinator.GetInstance().Add(this);
 }
 public static List <SlaveBase> GetObject(Type type)
 {
     return(GlobalCoordinator.GetInstance().Where(x => x.GetType() == type).ToList <SlaveBase>());
 }