Table of Contents

Struct WithInterval<TEvent>

Namespace
LfrlAnvil.Reactive.Chrono.Composites
Assembly
LfrlAnvil.Reactive.Chrono.dll

Represents an event with Timestamp and Interval.

public readonly struct WithInterval<TEvent>

Type Parameters

TEvent

Event type.

Inherited Members

Constructors

WithInterval(TEvent, Timestamp, Duration)

Creates a new WithInterval<TEvent> instance.

public WithInterval(TEvent @event, Timestamp timestamp, Duration interval)

Parameters

event TEvent

Underlying event.

timestamp Timestamp

Timestamp associated with this event.

interval Duration

Time 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

Duration

Timestamp

Timestamp associated with this event.

public Timestamp Timestamp { get; }

Property Value

Timestamp

Methods

ToString()

Returns a string representation of this WithInterval<TEvent> instance.

[Pure]
public override string ToString()

Returns

string

String representation.