ReplNavigationResult
Navigation instruction returned by a command result helper.
- Kind:
Class - Namespace: Repl
- Assembly:
Repl.Core - Source: src/Repl.Core/ReplNavigationResult.cs
Signature
Section titled “Signature”public sealed record ReplNavigationResult : IEquatable<ReplNavigationResult>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”IEquatable<ReplNavigationResult>
Constructors
Section titled “Constructors”ReplNavigationResult(object?, ReplNavigationKind, string?)
Section titled “ReplNavigationResult(object?, ReplNavigationKind, string?)”Navigation instruction returned by a command result helper.
public ReplNavigationResult(object? Payload, ReplNavigationKind Kind, string? TargetPath = null)Parameters
Section titled “Parameters”Payload(object): Result payload to render.Kind(ReplNavigationKind): Navigation kind.TargetPath(string): Optional target path for absolute navigation.
Properties
Section titled “Properties”Navigation kind.
public ReplNavigationKind Kind { get; init; }Returns
Section titled “Returns”Payload
Section titled “Payload”Result payload to render.
public object? Payload { get; init; }Returns
Section titled “Returns”TargetPath
Section titled “TargetPath”Optional target path for absolute navigation.
public string? TargetPath { get; init; }