Interface IMountedEventsPage
Represents a section of events in the mounted session.
The page is the minimum unit of work, much like a virtual memory system. Large pages will result in significant over-read, while very small pages will be unnecessarily inefficient.
Paging could be set based on time, sequence or file offset: it doesn't matter as long as the result is consistent across calls.
Namespace: MESL.SqlRace.Domain.MountedSessions
Assembly: MESL.SqlRace.Domain.dll
Syntax
public interface IMountedEventsPage
Properties
Count
Gets the number of events in this page.
Declaration
int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
TimeRange
Gets the time range (inclusive) represented by this page.
Declaration
TimeRange TimeRange { get; }
Property Value
Type | Description |
---|---|
TimeRange |
Methods
CopyTo(ICollection<Event>, Nullable<Int64>, Nullable<Int64>)
Copies events in the specified time range.
Declaration
int CopyTo(ICollection<Event> domainEvents, Nullable<long> startTime, Nullable<long> endTime)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.ICollection<Event> | domainEvents | Collection to receive the events. |
System.Nullable<System.Int64> | startTime | Optional inclusive start time bound. |
System.Nullable<System.Int64> | endTime | Optional inclusive end time bound. |
Returns
Type | Description |
---|---|
System.Int32 | Number of events copied. |