Class NavigationService
Service for managing navigation within the application.
Inheritance
object
NavigationService
Implements
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DataWeb.Structure
Assembly: DataWeb.Core.dll
Syntax
public class NavigationService : INavigationService
Constructors
NavigationService(IStructureService, IAuthorizationService, IItemService, IStringLocalizer)
Creates a new instance of NavigationService.
Declaration
public NavigationService(IStructureService structureService, IAuthorizationService authorizationService, IItemService itemService, IStringLocalizer localizer)
Parameters
Type | Name | Description |
---|---|---|
IStructureService | structureService | The structure service to use. |
IAuthorizationService | authorizationService | The authorization service to use. |
IItemService | itemService | The item service to use. |
IStringLocalizer | localizer | The localizer to use for string resources. |
Methods
GetErrorMessage(string)
Gets the error message for the specified error code.
Declaration
public 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)
Gets the navigation context for the specified navigation and user.
Declaration
public Task<NavigationContext> GetNavigationContextAsync(Navigation navigation, IUser user)
Parameters
Type | Name | Description |
---|---|---|
Navigation | navigation | The Navigation to get the context for. |
IUser | user | The IUser to get the context for. |
Returns
Type | Description |
---|---|
Task<NavigationContext> | The navigation context. |