Skip to content

ReplInvocationRequest

An invocation expressed as tokens or as a canonical route with native parameter values.

public sealed class ReplInvocationRequest

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)
  • 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.

ReplInvocationRequest - A request snapshot.

Creates a textual request, copying its tokens.

public static ReplInvocationRequest FromArguments(IReadOnlyList<string> arguments)
  • arguments (IReadOnlyList<string>): Command-line tokens.

ReplInvocationRequest - A request snapshot.

Gets textual arguments. Structured requests have no textual arguments.

public IReadOnlyList<string> Arguments { get; }

IReadOnlyList<string>

Gets the exact registered route template, or null for textual requests.

public string? Command { get; }

string

Gets native globals keyed by their registered names.

public IReadOnlyDictionary<string, object?> GlobalValues { get; }

IReadOnlyDictionary<string, object>

Gets native route, argument and option values keyed by parameter name.

public IReadOnlyDictionary<string, object?> Values { get; }

IReadOnlyDictionary<string, object>