Esempio n. 1
0
 /// <summary>
 ///     Copies the given *non-contiguous* segment of data from the given log file into this buffer in a contiguous block.
 /// </summary>
 /// <remarks>
 ///     This buffer must be large enough already to accomodate the data.
 /// </remarks>
 /// <param name="that"></param>
 /// <param name="column">The column to copy the data from the log file to this buffer</param>
 /// <param name="queryOptions">Configures how the data is to be retrieved</param>
 /// <param name="source">The log file from which data should be copied from</param>
 /// <param name="sourceIndices">The non-contiguous section of the log file from which to copy from (e.g. from index 5, 10 entries)</param>
 public static void CopyFrom(this ILogBuffer that,
                             IColumnDescriptor column,
                             ILogSource source,
                             IReadOnlyList <LogLineIndex> sourceIndices,
                             LogSourceQueryOptions queryOptions)
 {
     that.CopyFrom(column, 0, source, sourceIndices, LogSourceQueryOptions.Default);
 }
 private bool Equals(LogSourceQueryOptions other)
 {
     return(QueryMode == other.QueryMode &&
            MaximumWaitTime.Equals(other.MaximumWaitTime));
 }
 static LogSourceQueryOptions()
 {
     Default = new LogSourceQueryOptions(LogSourceQueryMode.Default, TimeSpan.MaxValue);
 }