Interface INavigationService
Provides methods to manage navigation in the application.
Namespace: DataWeb.Structure
Assembly: DataWeb.Core.dll
Syntax
public interface INavigationService
Methods
GetErrorMessage(string)
Gets the error message associated with an error code.
Declaration
string GetErrorMessage(string errorCode)
Parameters
Type | Name | Description |
---|---|---|
string | errorCode | The error code to get the message for. |
Returns
Type | Description |
---|---|
string | The error message. |
GetNavigationContextAsync(Navigation, IUser, CancellationToken)
Gets the navigation context for a specific navigation and user.
Declaration
Task<NavigationContext> GetNavigationContextAsync(Navigation navigation, IUser user, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
Navigation | navigation | The Navigation to get the context for. |
IUser | user | The IUser to get the context for. |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<NavigationContext> | A task that represents the asynchronous operation. The task result contains the navigation context. |