Show / Hide Table of Contents

Class MenuManager

Inheritance
object
MenuManager
Implements
IMenuManager
ITransientDependency
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.UI.Navigation
Assembly: Volo.Abp.UI.Navigation.dll
Syntax
public class MenuManager : IMenuManager, ITransientDependency

Constructors

MenuManager(IOptions<AbpNavigationOptions>, IServiceScopeFactory, ISimpleStateCheckerManager<ApplicationMenuItem>)

Declaration
public MenuManager(IOptions<AbpNavigationOptions> options, IServiceScopeFactory serviceScopeFactory, ISimpleStateCheckerManager<ApplicationMenuItem> simpleStateCheckerManager)
Parameters
Type Name Description
Microsoft.Extensions.Options.IOptions<TOptions><AbpNavigationOptions> options
Microsoft.Extensions.DependencyInjection.IServiceScopeFactory serviceScopeFactory
ISimpleStateCheckerManager<ApplicationMenuItem> simpleStateCheckerManager

Properties

Options

Declaration
protected AbpNavigationOptions Options { get; }
Property Value
Type Description
AbpNavigationOptions

ServiceScopeFactory

Declaration
protected IServiceScopeFactory ServiceScopeFactory { get; }
Property Value
Type Description
Microsoft.Extensions.DependencyInjection.IServiceScopeFactory

SimpleStateCheckerManager

Declaration
protected ISimpleStateCheckerManager<ApplicationMenuItem> SimpleStateCheckerManager { get; }
Property Value
Type Description
ISimpleStateCheckerManager<ApplicationMenuItem>

Methods

CheckPermissionsAsync(IServiceProvider, IHasMenuItems)

Declaration
protected virtual Task CheckPermissionsAsync(IServiceProvider serviceProvider, IHasMenuItems menuWithItems)
Parameters
Type Name Description
System.IServiceProvider serviceProvider
IHasMenuItems menuWithItems
Returns
Type Description
System.Threading.Tasks.Task

GetAllMenuItems(IHasMenuItems, List<ApplicationMenuItem>)

Declaration
protected virtual void GetAllMenuItems(IHasMenuItems menuWithItems, List<ApplicationMenuItem> output)
Parameters
Type Name Description
IHasMenuItems menuWithItems
System.Collections.Generic.List<T><ApplicationMenuItem> output

GetAsync(string)

Declaration
public Task<ApplicationMenu> GetAsync(string name)
Parameters
Type Name Description
string name
Returns
Type Description
System.Threading.Tasks.Task<TResult><ApplicationMenu>

GetAsync(params string[])

Declaration
protected virtual Task<ApplicationMenu> GetAsync(params string[] menuNames)
Parameters
Type Name Description
string[] menuNames
Returns
Type Description
System.Threading.Tasks.Task<TResult><ApplicationMenu>

GetInternalAsync(string)

Declaration
protected virtual Task<ApplicationMenu> GetInternalAsync(string name)
Parameters
Type Name Description
string name
Returns
Type Description
System.Threading.Tasks.Task<TResult><ApplicationMenu>

GetMainMenuAsync()

Declaration
public Task<ApplicationMenu> GetMainMenuAsync()
Returns
Type Description
System.Threading.Tasks.Task<TResult><ApplicationMenu>

MergeMenus(List<ApplicationMenu>)

Declaration
protected virtual ApplicationMenu MergeMenus(List<ApplicationMenu> menus)
Parameters
Type Name Description
System.Collections.Generic.List<T><ApplicationMenu> menus
Returns
Type Description
ApplicationMenu

NormalizeMenu(IHasMenuItems)

Declaration
protected virtual void NormalizeMenu(IHasMenuItems menuWithItems)
Parameters
Type Name Description
IHasMenuItems menuWithItems

RemoveMenus(IHasMenuItems, HashSet<ApplicationMenuItem>)

Declaration
protected virtual void RemoveMenus(IHasMenuItems menuWithItems, HashSet<ApplicationMenuItem> toBeDeleted)
Parameters
Type Name Description
IHasMenuItems menuWithItems
System.Collections.Generic.HashSet<T><ApplicationMenuItem> toBeDeleted

Implements

IMenuManager
ITransientDependency

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In This Article
Back to top Powered by Volosoft