/// <inheritdoc/>
        public void Add(TData data)
        {
            lock (queueData)
            {
                queueData.Enqueue(data);
            }

            Dispatch();
        }
Exemple #2
0
 /// <inheritdoc/>
 public void Enqueue(TData data)
 {
     try
     {
         rwLock.EnterReadLock();
         try
         {
             inContainer.Enqueue(data);
         }
         finally
         {
             rwLock.ExitReadLock();
         }
     }
     catch
     {
         throw;
     }
 }