ParsedInputContext
A parsed input snapshot for validators; services are injected separately into their signatures.
- Kind:
Class - Namespace: Repl
- Assembly:
Repl.Core - Source: src/Repl.Core/Input/ParsedInputContext.cs
Signature
Section titled “Signature”public sealed class ParsedInputContextInheritance
Section titled “Inheritance”Methods
Section titled “Methods”TryGetValue<T>(string, out T?)
Section titled “TryGetValue<T>(string, out T?)”Reads an available command input value without performing another conversion.
public bool TryGetValue<T>(string name, out T? value)Type Parameters
Section titled “Type Parameters”T: Expected declared value type.
Parameters
Section titled “Parameters”name(string): Parameter name.value(T): Converted value when available.
Returns
Section titled “Returns”Properties
Section titled “Properties”Command
Section titled “Command”Gets the resolved route template, or null for unresolved or partial input.
public string? Command { get; }Returns
Section titled “Returns”GlobalValues
Section titled “GlobalValues”Gets typed global values keyed by their registered names.
public IReadOnlyDictionary<string, InputValue> GlobalValues { get; }Returns
Section titled “Returns”IReadOnlyDictionary<string, InputValue>
Gets original and effective input and the processing mode.
public ArgumentPreprocessingContext Input { get; }Returns
Section titled “Returns”Validation
Section titled “Validation”Gets parser and earlier-validator diagnostics.
public InputValidationResult Validation { get; }Returns
Section titled “Returns”Values
Section titled “Values”Gets route, option and positional values keyed by their parameter names.
public IReadOnlyDictionary<string, InputValue> Values { get; }Returns
Section titled “Returns”IReadOnlyDictionary<string, InputValue>