Inheritance: Server.Engines.Reports.PersistableObject
 /// <summary>
 /// Advances the enumerator to the next queue of the enumeration, if one is currently available.
 /// </summary>
 /// <returns>true, if the enumerator was succesfully advanced to the next queue; false, if the enumerator has reached the end of the enumeration.</returns>
 public bool MoveNext()
 {
     if ((_index
          < (_collection.Count - 1)))
     {
         _index          = (_index + 1);
         _currentElement = _collection[_index];
         return(true);
     }
     _index = _collection.Count;
     return(false);
 }
示例#2
0
        public override void DeserializeChildren(PersistenceReader ip)
        {
            DateTime min = DateTime.UtcNow - TimeSpan.FromDays(8.0);

            while (ip.HasChild)
            {
                PersistableObject obj = ip.GetChild();

                if (obj is PageInfo)
                {
                    PageInfo pageInfo = obj as PageInfo;

                    pageInfo.UpdateResolver();

                    if (pageInfo.TimeSent >= min || pageInfo.TimeResolved >= min)
                    {
                        m_Pages.Add(pageInfo);
                        pageInfo.History = this;
                    }
                    else
                    {
                        pageInfo.Sender   = null;
                        pageInfo.Resolver = null;
                    }
                }
                else if (obj is QueueStatus)
                {
                    QueueStatus queueStatus = obj as QueueStatus;

                    if (queueStatus.TimeStamp >= min)
                    {
                        m_QueueStats.Add(queueStatus);
                    }
                }
            }
        }
 /// <summary>
 /// Insert a Server.Engines.Reports.QueueStatus instance into this collection at a specified index.
 /// </summary>
 /// <param name="index">Zero-based index.</param>
 /// <param name="value">The Server.Engines.Reports.QueueStatus instance to insert.</param>
 public void Insert(int index, QueueStatus value)
 {
     List.Insert(index, value);
 }
 /// <summary>
 /// Removes a specified Server.Engines.Reports.QueueStatus instance from this collection.
 /// </summary>
 /// <param name="value">The Server.Engines.Reports.QueueStatus instance to remove.</param>
 public void Remove(QueueStatus value)
 {
     List.Remove(value);
 }
 /// <summary>
 /// Retrieve the index a specified Server.Engines.Reports.QueueStatus instance is in this collection.
 /// </summary>
 /// <param name="value">Server.Engines.Reports.QueueStatus instance to find.</param>
 /// <returns>The zero-based index of the specified Server.Engines.Reports.QueueStatus instance. If the object is not found, the return value is -1.</returns>
 public int IndexOf(QueueStatus value)
 {
     return List.IndexOf(value);
 }
 /// <summary>
 /// Determines whether a specified Server.Engines.Reports.QueueStatus instance is in this collection.
 /// </summary>
 /// <param name="value">Server.Engines.Reports.QueueStatus instance to search for.</param>
 /// <returns>True if the Server.Engines.Reports.QueueStatus instance is in the collection; otherwise false.</returns>
 public bool Contains(QueueStatus value)
 {
     return List.Contains(value);
 }
 /// <summary>
 /// Append a Server.Engines.Reports.QueueStatus entry to this collection.
 /// </summary>
 /// <param name="value">Server.Engines.Reports.QueueStatus instance.</param>
 /// <returns>The position into which the new element was inserted.</returns>
 public int Add(QueueStatus value)
 {
     return List.Add(value);
 }
 /// <summary>
 /// Advances the enumerator to the next queue of the enumeration, if one is currently available.
 /// </summary>
 /// <returns>true, if the enumerator was succesfully advanced to the next queue; false, if the enumerator has reached the end of the enumeration.</returns>
 public bool MoveNext()
 {
     if ((_index 
                 < (_collection.Count - 1)))
     {
         _index = (_index + 1);
         _currentElement = _collection[_index];
         return true;
     }
     _index = _collection.Count;
     return false;
 }
 /// <summary>
 /// Reset the cursor, so it points to the beginning of the enumerator.
 /// </summary>
 public void Reset()
 {
     _index = -1;
     _currentElement = null;
 }
 /// <summary>
 /// Insert a Server.Engines.Reports.QueueStatus instance into this collection at a specified index.
 /// </summary>
 /// <param name="index">Zero-based index.</param>
 /// <param name="value">The Server.Engines.Reports.QueueStatus instance to insert.</param>
 public void Insert(int index, QueueStatus value)
 {
     List.Insert(index, value);
 }
 /// <summary>
 /// Removes a specified Server.Engines.Reports.QueueStatus instance from this collection.
 /// </summary>
 /// <param name="value">The Server.Engines.Reports.QueueStatus instance to remove.</param>
 public void Remove(QueueStatus value)
 {
     List.Remove(value);
 }
 /// <summary>
 /// Retrieve the index a specified Server.Engines.Reports.QueueStatus instance is in this collection.
 /// </summary>
 /// <param name="value">Server.Engines.Reports.QueueStatus instance to find.</param>
 /// <returns>The zero-based index of the specified Server.Engines.Reports.QueueStatus instance. If the object is not found, the return value is -1.</returns>
 public int IndexOf(QueueStatus value)
 {
     return(List.IndexOf(value));
 }
 /// <summary>
 /// Determines whether a specified Server.Engines.Reports.QueueStatus instance is in this collection.
 /// </summary>
 /// <param name="value">Server.Engines.Reports.QueueStatus instance to search for.</param>
 /// <returns>True if the Server.Engines.Reports.QueueStatus instance is in the collection; otherwise false.</returns>
 public bool Contains(QueueStatus value)
 {
     return(List.Contains(value));
 }
 /// <summary>
 /// Append a Server.Engines.Reports.QueueStatus entry to this collection.
 /// </summary>
 /// <param name="value">Server.Engines.Reports.QueueStatus instance.</param>
 /// <returns>The position into which the new element was inserted.</returns>
 public int Add(QueueStatus value)
 {
     return(List.Add(value));
 }
 /// <summary>
 /// Reset the cursor, so it points to the beginning of the enumerator.
 /// </summary>
 public void Reset()
 {
     _index          = -1;
     _currentElement = null;
 }