コード例 #1
0
 public bool IsOnLine(EquipmentType equipmentType)
 {
     if (equipmentType.UID == Constants.ControllerUID)
         //опрос контроллера
         return IsControllerOnLine;
     IModule module;
     if (mappingList.TryGetValue(equipmentType.GetType(), out module))
     {
         return module.ServerModule.IsOnLine(equipmentType);
     }
     return false;
 }