Exemplo n.º 1
0
 public void SetRdrPolling(string ip, bool b)
 {
     //lock(myLock)
     {
         readerStatStruct rdrStatObj = new readerStatStruct(0);
         if (GetRdrFromList(ip, ref rdrStatObj))
         {
             readerStatStruct rdrStatObj1 = new readerStatStruct(0);
             rdrStatObj1.rdrID  = rdrStatObj.rdrID;
             rdrStatObj1.hostID = rdrStatObj.hostID;
             rdrStatObj1.SetCounter(rdrStatObj.GetCounter());
             rdrStatObj1.SetPollReader(false);
             rdrStatObj1.online = rdrStatObj.online;
             rdrStatObj1.SetProcessing(rdrStatObj.GetProcessing());
             rdrStatObj1.SetStatus(rdrStatObj.GetStatus());
             rdrStatObj1.SetStartTimeSec(rdrStatObj.GetStartTimeSec());
             rdrStatObj1.SetIP(rdrStatObj.GetIP());
             rdrStatusList.Remove(rdrStatObj);
             rdrStatusList.Add(rdrStatObj1);
         }
     }            //lock
 }