Interface
IConsoleDashboard
ConsoleMonster.Hosting
The dashboard as the application sees it: report entries, write to its log, read the statuses.
Usage
Explore 1 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.
Accepted by parameters 1
- Constructor ServicesView.ServicesView
Methods
public abstract void Log(string message, string level = "info") #Writes a line to the dashboard's log region while it shows (ignored otherwise; use ILogger for logs that always land).
Parameters
- message string
- The message.
- level string = "info"
- info, warn, err, verbose, debug, pass or skip.
public abstract void SetDetail(string name, string? detail) #Sets an entry's detail, keeping its state (adds it as running when new).
Parameters
- name string
- The entry's name.
- detail string?
- The detail, or null to clear it.
public abstract void SetStatus(string name, ServiceState state, string? detail = null) #Sets an entry's state (added when new), with an optional detail.
Parameters
- name string
- The entry's name.
- state ConsoleMonster.Hosting.ServiceState
- The state.
- detail string? = null
- A detail, or null.
public abstract IReadOnlyList<ServiceStatus> Snapshot() #The current statuses, in the order they were added.
Properties
public abstract bool IsShown { get; } #Whether the live dashboard is showing.