예제 #1
0
        public void RemovePO(POWithStatus po)
        {
            SerializablePO spo = _manualList.FirstOrDefault(p => p.Number == po.Number);

            if (spo != null && po != null)
            {
                lock (InternalData)
                {
                    _manualCol.Remove(po);
                    _manualList.Remove(spo);
                    InternalData.Remove(po);
                }
            }
        }
예제 #2
0
        public void Remove(ChargingSession ChargingSession)
        {
            lock (InternalData)
            {
                if (ChargingSession != null &&
                    InternalData.ContainsKey(ChargingSession.Id))
                {
                    InternalData.Remove(ChargingSession.Id);

                    LogIt("remove",
                          ChargingSession.Id,
                          "chargingSession",
                          ChargingSession.ToJSON());
                }
            }
        }
예제 #3
0
        public void Remove(ChargingSession_Id ChargingSessionId,
                           AAuthentication Authentication)
        {
            lock (InternalData)
            {
                if (InternalData.TryGetValue(ChargingSessionId, out ChargingSession session))
                {
                    InternalData.Remove(session.Id);
                    session.AuthenticationStop = Authentication;

                    LogIt("remove",
                          session.Id,
                          "chargingSession",
                          session.ToJSON());
                }
            }
        }
예제 #4
0
 public void Remove(object key)
 {
     InternalData.Remove(key);
 }