Class
PromptEngine
ConsoleMonster.Prompts
Evaluates prompt providers and owns the asynchronous cache for one shell session.
Inheritance
- object
- PromptEngine
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
- Property ShellPrompt.Engine
Accepted by parameters 2
- Extension method ShellPrompt.Engine
- Method ShellPromptFluent.Engine
Constructors
public PromptEngine(IEnumerable<IPromptSegment>? segments = null) #Uses the built-in segment catalogue, or a caller-owned provider catalogue.
Parameters
- segments System.Collections.Generic.IEnumerable<ConsoleMonster.Prompts.IPromptSegment>? = null
Methods
public void Refresh(PromptContext context, PromptConfiguration configuration) #Evaluates the configured segments and queues any asynchronous refreshes that are due.
Parameters
- context ConsoleMonster.Prompts.PromptContext
- The current shell and terminal snapshot.
- configuration ConsoleMonster.Prompts.PromptConfiguration
- The segment lists and options for this prompt.
Inherited Methods
Properties
Events
public event Action<string>? Changed #Notifies the host when a background result changes. A subscriber must marshal editor access.