Class BowireRecordingSessionEvent
- Namespace
- Kuestenlogik.Bowire.Recording
- Assembly
- Kuestenlogik.Bowire.dll
One transition broadcast on Subscribe().
The SSE producer maps Kind to the SSE event: name
and serialises the payload as the data: JSON body.
public sealed record BowireRecordingSessionEvent : IEquatable<BowireRecordingSessionEvent>
- Inheritance
-
BowireRecordingSessionEvent
- Implements
- Inherited Members
Constructors
BowireRecordingSessionEvent()
public BowireRecordingSessionEvent()
Properties
Kind
public required BowireRecordingSessionEventKind Kind { get; init; }
Property Value
Recording
On Stopped — the persisted recording.
public BowireRecording? Recording { get; init; }
Property Value
Session
Session snapshot at the moment of the event. null only for
Stopped after the
state has been cleared — and even then we surface the just-closed
state so subscribers know what flushed.
public BowireRecordingSessionState? Session { get; init; }
Property Value
StepIndex
On StepAppended — the 0-based index of the freshly-appended step.
public int? StepIndex { get; init; }
Property Value
- int?
Methods
Equals(BowireRecordingSessionEvent?)
public bool Equals(BowireRecordingSessionEvent? other)
Parameters
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ModeSwitched(BowireRecordingSessionState)
public static BowireRecordingSessionEvent ModeSwitched(BowireRecordingSessionState session)
Parameters
sessionBowireRecordingSessionState
Returns
Started(BowireRecordingSessionState)
public static BowireRecordingSessionEvent Started(BowireRecordingSessionState session)
Parameters
sessionBowireRecordingSessionState
Returns
StepAppended(BowireRecordingSessionState, int)
public static BowireRecordingSessionEvent StepAppended(BowireRecordingSessionState session, int index)
Parameters
sessionBowireRecordingSessionStateindexint
Returns
Stopped(BowireRecordingSessionState, BowireRecording?)
public static BowireRecordingSessionEvent Stopped(BowireRecordingSessionState session, BowireRecording? recording)
Parameters
sessionBowireRecordingSessionStaterecordingBowireRecording
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(BowireRecordingSessionEvent?, BowireRecordingSessionEvent?)
public static bool operator ==(BowireRecordingSessionEvent? left, BowireRecordingSessionEvent? right)
Parameters
Returns
operator !=(BowireRecordingSessionEvent?, BowireRecordingSessionEvent?)
public static bool operator !=(BowireRecordingSessionEvent? left, BowireRecordingSessionEvent? right)