Inheritance: Server.Engines.Reports.PersistableObject
示例#1
0
        public PageResolution GetResolution(out string resolvedBy, out DateTime timeResolved)
        {
            for (int i = m_Responses.Count - 1; i >= 0; --i)
            {
                ResponseInfo   resp = m_Responses[i];
                PageResolution res  = ResFromResp(resp.Message);

                if (res != PageResolution.None)
                {
                    resolvedBy   = resp.SentBy;
                    timeResolved = resp.TimeStamp;
                    return(res);
                }
            }

            resolvedBy   = m_SentBy;
            timeResolved = m_TimeSent;
            return(PageResolution.None);
        }
示例#2
0
 /// <summary>
 /// Removes a specified Server.Engines.Reports.ResponseInfo instance from this collection.
 /// </summary>
 /// <param name="value">The Server.Engines.Reports.ResponseInfo instance to remove.</param>
 public void Remove(ResponseInfo value)
 {
     List.Remove(value);
 }
示例#3
0
 /// <summary>
 /// Insert a Server.Engines.Reports.ResponseInfo instance into this collection at a specified index.
 /// </summary>
 /// <param name="index">Zero-based index.</param>
 /// <param name="value">The Server.Engines.Reports.ResponseInfo instance to insert.</param>
 public void Insert(int index, ResponseInfo value)
 {
     List.Insert(index, value);
 }
示例#4
0
 /// <summary>
 /// Determines whether a specified Server.Engines.Reports.ResponseInfo instance is in this collection.
 /// </summary>
 /// <param name="value">Server.Engines.Reports.ResponseInfo instance to search for.</param>
 /// <returns>True if the Server.Engines.Reports.ResponseInfo instance is in the collection; otherwise false.</returns>
 public bool Contains(ResponseInfo value)
 {
     return(List.Contains(value));
 }
示例#5
0
 /// <summary>
 /// Retrieve the index a specified Server.Engines.Reports.ResponseInfo instance is in this collection.
 /// </summary>
 /// <param name="value">Server.Engines.Reports.ResponseInfo instance to find.</param>
 /// <returns>The zero-based index of the specified Server.Engines.Reports.ResponseInfo instance. If the object is not found, the return value is -1.</returns>
 public int IndexOf(ResponseInfo value)
 {
     return(List.IndexOf(value));
 }
示例#6
0
 /// <summary>
 /// Reset the cursor, so it points to the beginning of the enumerator.
 /// </summary>
 public void Reset()
 {
     _index          = -1;
     _currentElement = null;
 }
示例#7
0
 /// <summary>
 /// Append a Server.Engines.Reports.ResponseInfo entry to this collection.
 /// </summary>
 /// <param name="value">Server.Engines.Reports.ResponseInfo instance.</param>
 /// <returns>The position into which the new element was inserted.</returns>
 public int Add(ResponseInfo value)
 {
     return(List.Add(value));
 }
 /// <summary>
 /// Removes a specified Server.Engines.Reports.ResponseInfo instance from this collection.
 /// </summary>
 /// <param name="value">The Server.Engines.Reports.ResponseInfo instance to remove.</param>
 public void Remove(ResponseInfo value)
 {
     List.Remove(value);
 }
 /// <summary>
 /// Insert a Server.Engines.Reports.ResponseInfo instance into this collection at a specified index.
 /// </summary>
 /// <param name="index">Zero-based index.</param>
 /// <param name="value">The Server.Engines.Reports.ResponseInfo instance to insert.</param>
 public void Insert(int index, ResponseInfo value)
 {
     List.Insert(index, value);
 }
 /// <summary>
 /// Retrieve the index a specified Server.Engines.Reports.ResponseInfo instance is in this collection.
 /// </summary>
 /// <param name="value">Server.Engines.Reports.ResponseInfo instance to find.</param>
 /// <returns>The zero-based index of the specified Server.Engines.Reports.ResponseInfo instance. If the object is not found, the return value is -1.</returns>
 public int IndexOf(ResponseInfo value)
 {
     return List.IndexOf(value);
 }
 /// <summary>
 /// Determines whether a specified Server.Engines.Reports.ResponseInfo instance is in this collection.
 /// </summary>
 /// <param name="value">Server.Engines.Reports.ResponseInfo instance to search for.</param>
 /// <returns>True if the Server.Engines.Reports.ResponseInfo instance is in the collection; otherwise false.</returns>
 public bool Contains(ResponseInfo value)
 {
     return List.Contains(value);
 }
 /// <summary>
 /// Append a Server.Engines.Reports.ResponseInfo entry to this collection.
 /// </summary>
 /// <param name="value">Server.Engines.Reports.ResponseInfo instance.</param>
 /// <returns>The position into which the new element was inserted.</returns>
 public int Add(ResponseInfo 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;
 }