ReplInvocationRequest
An invocation expressed as tokens or as a canonical route with native parameter values.
- Kind:
Class - Namespace: Repl
- Assembly:
Repl.Core - Source: src/Repl.Core/Input/ReplInvocationRequest.cs
Signature
Section titled “Signature”public sealed class ReplInvocationRequestInheritance
Section titled “Inheritance”Methods
Section titled “Methods”ForCommand(string, IReadOnlyDictionary<string, object?>?, IReadOnlyDictionary<string, object?>?)
Section titled “ForCommand(string, IReadOnlyDictionary<string, object?>?, IReadOnlyDictionary<string, object?>?)”Creates a structured request without converting its values to command-line tokens.
public static ReplInvocationRequest ForCommand(string command, IReadOnlyDictionary<string, object?>? values = null, IReadOnlyDictionary<string, object?>? globalValues = null)Parameters
Section titled “Parameters”command(string): Exact registered route template.values(IReadOnlyDictionary<string, object>): Native values keyed by parameter name.globalValues(IReadOnlyDictionary<string, object>): Native global options; omitted globals use the ordinary defaults or session baseline.
Returns
Section titled “Returns”ReplInvocationRequest - A request snapshot.
FromArguments(IReadOnlyList<string>)
Section titled “FromArguments(IReadOnlyList<string>)”Creates a textual request, copying its tokens.
public static ReplInvocationRequest FromArguments(IReadOnlyList<string> arguments)Parameters
Section titled “Parameters”arguments(IReadOnlyList<string>): Command-line tokens.
Returns
Section titled “Returns”ReplInvocationRequest - A request snapshot.
Properties
Section titled “Properties”Arguments
Section titled “Arguments”Gets textual arguments. Structured requests have no textual arguments.
public IReadOnlyList<string> Arguments { get; }Returns
Section titled “Returns”IReadOnlyList<string>
Command
Section titled “Command”Gets the exact registered route template, or null for textual requests.
public string? Command { get; }Returns
Section titled “Returns”GlobalValues
Section titled “GlobalValues”Gets native globals keyed by their registered names.
public IReadOnlyDictionary<string, object?> GlobalValues { get; }Returns
Section titled “Returns”IReadOnlyDictionary<string, object>
Values
Section titled “Values”Gets native route, argument and option values keyed by parameter name.
public IReadOnlyDictionary<string, object?> Values { get; }Returns
Section titled “Returns”IReadOnlyDictionary<string, object>