Example #1
0
        public static void CreateStation(STATIONNAME StationName, List <DEVICEMAPPER> AvaliableDevices)
        {
            StationHandler NewStation = new StationHandler();

            NewStation.CreateEngine(StationName, AvaliableDevices);

            KeeperData.Add(NewStation);
        }
Example #2
0
        public static ReturnKnowType CreateStation(STATIONNAME StationName, String StationSessionID, Object ServerCallBackObject)
        {
            StationHandler ThisStation      = KeeperData.FirstOrDefault(Item => Item.StationName == StationName);
            ReturnKnowType CreateSiteResult = ThisStation.CreateEngine(StationSessionID, ServerCallBackObject);

            if (ThisStation != null)
            {
                ThisStation.StationConnected();
            }

            TTCSLog.NewLogInformation(StationName, DateTime.UtcNow, "Station name : " + StationName.ToString() + " has been created, Status ready and waiting for command.", LogType.COMMUNICATION, null);
            return(CreateSiteResult);
        }