Class RuntimeEventBatch
One drained batch of copied runtime events.
public sealed record RuntimeEventBatch : IEquatable<RuntimeEventBatch>
- Inheritance
-
RuntimeEventBatch
- Implements
- Inherited Members
Remarks
Every value in the batch is a copy, so it stays readable after the next drain and after the map that produced it is closed.
Constructors
RuntimeEventBatch(IReadOnlyList<RuntimeEvent>, ulong)
One drained batch of copied runtime events.
public RuntimeEventBatch(IReadOnlyList<RuntimeEvent> Events, ulong RemainingCount)
Parameters
EventsIReadOnlyList<RuntimeEvent>The copied events in queue order.
RemainingCountulongEvents still queued for the runtime after this batch. A nonzero value means another drain reports more events.
Remarks
Every value in the batch is a copy, so it stays readable after the next drain and after the map that produced it is closed.
Properties
Events
public IReadOnlyList<RuntimeEvent> Events { get; init; }
Property Value
RemainingCount
Events still queued for the runtime after this batch. A nonzero value means another drain reports more events.
public ulong RemainingCount { get; init; }
Property Value
Methods
Equals(RuntimeEventBatch?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(RuntimeEventBatch? other)
Parameters
otherRuntimeEventBatchAn object to compare with this object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.