public void AddToQueue(String buildName)
 {
     lock (s_lock)
     {
         var item = new BuildElement()
         {
             Name = buildName, RequestTime = DateTime.Now
         };
         QueueList.Add(item);
         if (!QueueTimer.Enabled)
         {
             QueueTimer.Start();
         }
     }
 }
示例#2
0
        public void AddToQueue(PatternsSessionData session, byte[] upPByte, byte[] hrByte)
        {
            lock (s_lockObject)
            {
                var item = new RetrospectiveQueueStructure()
                {
                    FHRByte = hrByte,
                    UPByte  = upPByte,
                    Session = session
                };

                QueueList.Add(item);
                if (!QueueTimer.Enabled)
                {
                    QueueTimer.Start();
                    Logger.WriteLogEntry(TraceEventType.Information, "Patterns Add On Manager, RetrospectiveQueue, Add To Queue", "QueueTimer started");
                }

                Logger.WriteLogEntry(TraceEventType.Information, "Patterns Add On Manager, RetrospectiveQueue, Add To Queue", "AddToQueue finished");
            }
        }