Example #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);
                }
            }
        }
        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());
                }
            }
        }
        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());
                }
            }
        }
 public void Remove(object key)
 {
     InternalData.Remove(key);
 }