NavigationEntry<TContent> class

Namespace Runic.Navigation · Runic.Navigation 0.7.0-preview.5

public sealed class NavigationEntry<TContent> : INavigationEntry where TContent : class

Inherits or implements INavigationEntry.

One entry of a navigation region: its stable id, content, ownership and state.

Type parameters

TContent

The region's content type.

Properties

Content

public TContent Content { get; }

Gets the entry's content.

Id

public NavigationEntryId Id { get; }

Gets the entry's id, unique within its navigator.

Ownership

public NavigationOwnership Ownership { get; }

Gets whether the navigator owns the content.

Services

public IServiceProvider Services { get; }

Gets the entry's service provider: its own service scope when the navigator created one (RunicNavigatorOptions.CreateEntryScopes), otherwise the navigator's RunicNavigator.Services, otherwise an empty provider. After an entry with its own scope retires, resolving from it throws ObjectDisposedException.

Documentation from INavigationEntry.Services.

State

public NavigationEntryState State { get; }

Gets the entry's current state.

Methods

ToString

public override string ToString()

Inherits documentation from Object.ToString.