DataWeb
Search Results for

    Show / Hide Table of Contents

    Class NavigationService

    Service for managing navigation within the application.

    Inheritance
    object
    NavigationService
    Implements
    INavigationService
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: DataWeb.Structure
    Assembly: DataWeb.Core.dll
    Syntax
    public sealed class NavigationService : INavigationService
    Remarks

    Creates a new instance of NavigationService.

    Constructors

    NavigationService(IStructureService, IAuthorizationService, IItemService, IStringLocalizer)

    Service for managing navigation within the application.

    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.

    Remarks

    Creates a new instance of NavigationService.

    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, CancellationToken)

    Gets the navigation context for the specified navigation and user.

    Declaration
    public 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>

    The navigation context.

    Implements

    INavigationService
    In this article
    Back to top Generated by DocFX