Skip to content
ConsoleMonster
Class

OverviewSectionRegistry

ConsoleMonster.Overview

Namespace
ConsoleMonster.Overview
Assembly
ConsoleMonster
Modifiers
sealed

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.

Accepted by parameters 1

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 required
A case-insensitive selection key.
title string required
A plain-text panel title.
collect System.Func<System.Threading.CancellationToken, System.Threading.Tasks.Task<ConsoleMonster.Overview.OverviewSection?>> required
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.

Returns

OverviewSectionRegistry This registry.

Properties

public static OverviewSectionRegistry Default { get; } #

The process-wide built-in registry, shared to bound concurrent native probes.

public IReadOnlyList<string> Names { get; } #

Returns the registered selection keys in display order.