Struct WithInterval<TEvent>
- Namespace
- LfrlAnvil.Reactive.Chrono.Composites
- Assembly
- LfrlAnvil.Reactive.Chrono.dll
public readonly struct WithInterval<TEvent>
Type Parameters
TEventEvent type.
- Inherited Members
Constructors
WithInterval(TEvent, Timestamp, Duration)
Creates a new WithInterval<TEvent> instance.
public WithInterval(TEvent @event, Timestamp timestamp, Duration interval)
Parameters
eventTEventUnderlying event.
timestampTimestampTimestamp associated with this event.
intervalDurationTime elapsed since the last event.
Properties
Event
Underlying event.
public TEvent Event { get; }
Property Value
- TEvent
Interval
Time elapsed since the last event.
public Duration Interval { get; }
Property Value
Timestamp
Timestamp associated with this event.
public Timestamp Timestamp { get; }
Property Value
Methods
ToString()
Returns a string representation of this WithInterval<TEvent> instance.
[Pure]
public override string ToString()
Returns
- string
String representation.