Class
OverviewSectionRegistry
ConsoleMonster.Overview
Thread-safe ordered registry of read-only overview probes.
Inheritance
- object
- OverviewSectionRegistry
Usage
Explore 3 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 OverviewSectionRegistry.Register
- Property OverviewSectionRegistry.Default
Accepted by parameters 1
- Constructor OverviewCollector.OverviewCollector
Constructors
public OverviewSectionRegistry() #Methods
public OverviewSectionRegistry Register(string name, string title, Func<CancellationToken, Task<OverviewSection?>> collect) #Registers a section without replacing an existing provider.
Parameters
- name string
- A case-insensitive selection key.
- title string
- A plain-text panel title.
- collect System.Func<System.Threading.CancellationToken, System.Threading.Tasks.Task<ConsoleMonster.Overview.OverviewSection?>>
- A read-only provider returning null when unavailable. It must honor cancellation and release its resources. A non-cooperative delegate cannot be forcibly stopped; the registry retains its single in-flight slot until it returns.