Skip to content
ConsoleMonster
Class

PromptSegmentOptions

ConsoleMonster.Prompts

Namespace
ConsoleMonster.Prompts
Assembly
ConsoleMonster
Modifiers
sealed

Configuration and cancellation for a segment probe.

Inheritance

  • object
  • PromptSegmentOptions

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 1

Accepted by parameters 2

Constructors

public PromptSegmentOptions(IReadOnlyDictionary<string, string>? values = null) #

Copies the provider's string options.

Parameters

values System.Collections.Generic.IReadOnlyDictionary<string, string>? = null optional

Methods

public string Get(string name, string fallback = "") #

Gets the specified option, or its default.

Parameters

name string required
fallback string = "" optional

Returns

string

Properties

public IReadOnlyDictionary<string, string> Values { get; } #

The immutable named options.

public CancellationToken Cancellation { get; } #

The asynchronous probe's time and lifetime limit.