NavigationResult<TContent>.Committed record

Namespace Runic.Navigation in Runic.Navigation 0.23.0

public sealed record NavigationResult<TContent>.Committed : NavigationResult<TContent>, IEquatable<NavigationResult<TContent>.Committed>

Nested in NavigationResult. Inherits or implements NavigationResult, IEquatable.

The transition committed.

Parameters

Current

The region's current entry after the commit, or null when it is empty.

Retired

The entries whose retirement this transition performed.

Remarks

The request completes after the departed entries retired and after the arrival hooks (INavigationArrived) of the entries the commit made current ran.

Constructors

Committed

public Committed(NavigationEntry<TContent>? Current, IReadOnlyList<NavigationEntryId> Retired)

The transition committed.

Parameters

Current

The region's current entry after the commit, or null when it is empty.

Retired

The entries whose retirement this transition performed.

Remarks

The request completes after the departed entries retired and after the arrival hooks (INavigationArrived) of the entries the commit made current ran.

Properties

Arrival

public NavigationArrivalState Arrival { get; init; }

Gets how the arrival hooks of the entries this commit made current ended, or NavigationArrivalState.None when none of them implements INavigationArrived or INavigationArrived. The commit stands whatever it is.

ArrivalError

public Exception? ArrivalError { get; init; }

Gets the exception of the first arrival hook that failed when Committed.Arrival is NavigationArrivalState.Failed; otherwise null.

Current

public NavigationEntry<TContent>? Current { get; init; }

The region's current entry after the commit, or null when it is empty.

Retired

public IReadOnlyList<NavigationEntryId> Retired { get; init; }

The entries whose retirement this transition performed.