/// <summary> /// Initializes a new instance of the <see cref="StreamEvent"/> class. /// </summary> /// <param name="event">The <see cref="CommittedEvent" />.</param> /// <param name="position">The <see cref="StreamPosition" />.</param> /// <param name="stream">The <see cref="StreamId" />.</param> /// <param name="partition">The <see cref="PartitionId" />.</param> /// <param name="partitioned">Whether the event is partitioned.</param> public StreamEvent(CommittedEvent @event, StreamPosition position, StreamId stream, PartitionId partition, bool partitioned) { Event = @event; Position = position; Stream = stream; Partition = partition; Partitioned = partitioned; }
/// <summary> /// Initializes a new instance of the <see cref="StreamPositionRange"/> class. /// </summary> /// <param name="from">The from <see cref="StreamPosition" />.</param> /// <param name="length">Wanted length of the range moving forward.</param> public StreamPositionRange(StreamPosition from, ulong length) { From = from; Length = length; }