Interface IRouterBuilder
Route builder
Namespace: Neutronium.BuildingBlocks.Application.Navigation
Assembly: Neutronium.BuildingBlocks.Application.dll
Syntax
public interface IRouterBuilder
Methods
| Improve this Doc View SourceRegister(RouteSpecification, RouteDestination, Boolean)
Associate a viewmodel type to a given route
Declaration
IRouterBuilder Register(RouteSpecification route, RouteDestination routeDestination, bool defaultType = true)
Parameters
Type | Name | Description |
---|---|---|
RouteSpecification | route | |
RouteDestination | routeDestination | |
System.Boolean | defaultType | True if the type should be considered as default for the corresponding route name |
Returns
Type | Description |
---|---|
IRouterBuilder | The navigation builder instance |
Register(Type, String, Boolean)
Associate a viewmodel type to a given route
Declaration
IRouterBuilder Register(Type type, string routeName, bool defaultType = true)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | Type of view model to register |
System.String | routeName | router name |
System.Boolean | defaultType | true if the type should be considered as default for the corresponding route name |
Returns
Type | Description |
---|---|
IRouterBuilder | the router builder instance |
Register<T>(String, Boolean)
Associate a viewmodel type to a given route
Declaration
IRouterBuilder Register<T>(string routeName, bool defaultType = true)
Parameters
Type | Name | Description |
---|---|---|
System.String | routeName | Route name |
System.Boolean | defaultType | True if the type should be considered as default for the corresponding route name |
Returns
Type | Description |
---|---|
IRouterBuilder | The navigation builder instance |
Type Parameters
Name | Description |
---|---|
T | Type of view model to register |