LiveEvent
ConsoleMonster.Live
One update for a live widget, addressed by the widget's name. Every live change travels as a LiveEvent, so updates from any thread can be queued, coalesced, recorded as JSON lines and replayed without reflection.
Inheritance
- object
- LiveEvent
Usage
Explore 65 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 2
- Method LiveEvent.WithTime
- Method LiveRecordingReader.Read
Accepted by parameters 63
- Method Recording.CaptureFrames
- Method Recording.Render
- Method Recording.ToPlayerData
- Method ConsoleGraphicsExtensions.Save
- Extension method IWidget.Save
- Method ILiveDispatcher.Post
- Method ILiveTarget.Apply
- Method ILiveTarget.Describe
- Method ImmediateDispatcher.Post
- Method LiveRecorder.Write
- Method LiveSession.Post
- Method LiveSession.Replay
- Method LogTailView.Apply
- Method LogTailView.Describe
- Method MarkdownExporter.ReplayToMarkdown
- Method ReplayMarker.From
- Method ReplayPlayer.Play
- Method ActivityList.Apply
- Method ActivityList.Describe
- Method BarChart.Apply
- Method BarChart.Describe
- Method CellMap.Apply
- Method CellMap.Describe
- Method Dashboard.Apply
- Method Dashboard.Describe
- Method Diagram.Apply
- Method Diagram.Describe
- Method Flow.Apply
- Method Flow.Describe
- Method Histogram.Apply
- Method Histogram.Describe
- Method KeyValueList.Apply
- Method KeyValueList.Describe
- Method Lanes.Apply
- Method Lanes.Describe
- Method LineChart.Apply
- Method LineChart.Describe
- Method LiveTable.Apply
- Method LiveTable.Describe
- Method LiveWidget.Apply
- Method LiveWidget.Describe
- Method LogRegion.Apply
- Method LogRegion.Describe
- Method Phases.Apply
- Method Phases.Describe
- Method ProgressBar.Apply
- Method ProgressBar.Describe
- Method RegionWidget.Apply
- Method RegionWidget.Describe
- Method ScatterPlot.Apply
- Method ScatterPlot.Describe
- Method Sparkline.Apply
- Method Sparkline.Describe
- Method Spinner.Apply
- Method Spinner.Describe
- Method StackedBar.Apply
- Method StackedBar.Describe
- Method StatusList.Apply
- Method StatusList.Describe
- Method SummaryBar.Apply
- Method SummaryBar.Describe
- Method WatchView.Apply
- Method WatchView.Describe
Constructors
public LiveEvent(string widgetId, string operation, string? key = null, string? text = null, string? status = null, double value = 0, double total = 0, long time = 0, bool isMarkup = false) #Creates an event.
Parameters
- widgetId string
- The name of the target widget.
- operation string
- The operation, defined by the target (for example advance, add, write).
- key string? = null
- The item key inside the target (lane, phase, row), when the operation needs one.
- text string? = null
- Free text (log line, detail, label).
- status string? = null
- A state word (pass, fail, running, info, warn...).
- value double = 0
- A numeric value (increment, sample, current value).
- total double = 0
- A second numeric value (maximum, total, duration).
- time long = 0
- Milliseconds since the session started; the session stamps it when 0.
- isMarkup bool = false
- Whether text is markup (rich text) rather than literal text.
Methods
Inherited Methods
Properties
public bool IsMarkup { get; } #Whether LiveEvent.Text is markup (rich text, for example from New-ConsoleText) rather than literal text. Targets that show text literally (lane labels and detail, log lines) render it with its styles when set.
public object? Payload { get; set; } #An in-process object for the target (a replacement widget for a RegionWidget, row values for a LiveTable, or an IWidget to append through a log target), or null. It is not recorded: a replayed recording sees only the text fields.