NavigationRouteServiceCollectionExtensions class

Namespace Runic.Navigation in Runic.Navigation 0.23.0

public static class NavigationRouteServiceCollectionExtensions

Registers a NavigationRouteMap.

Methods

AddRunicNavigationRoutes

public static IServiceCollection AddRunicNavigationRoutes(this IServiceCollection services, Action<NavigationRouteMapBuilder> configure)

Adds the routes that configure declares to the singleton INavigationRouteMap and NavigationRouteMap, which RunicNavigator.GetPath, RunicNavigator.RestoreAsync and NavigationRegion.OpenRouteAsync resolve from the navigator's services. Every call adds to one map, in call order, so features can register their own routes.

Exceptions

ArgumentException

A template is registered twice, also by two calls.