Class WidgetManager
Inheritance
object
WidgetManager
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.Abp.AspNetCore.Mvc.UI.Widgets
Assembly: Volo.Abp.AspNetCore.Mvc.UI.Widgets.dll
Syntax
public class WidgetManager : IWidgetManager, ITransientDependency
Constructors
WidgetManager(IOptions<AbpWidgetOptions>, IAuthorizationService, ICurrentUser)
Declaration
public WidgetManager(IOptions<AbpWidgetOptions> widgetOptions, IAuthorizationService authorizationService, ICurrentUser currentUser)
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.Extensions.Options.IOptions<TOptions><AbpWidgetOptions> | widgetOptions | |
| Microsoft.AspNetCore.Authorization.IAuthorizationService | authorizationService | |
| ICurrentUser | currentUser |
Properties
AuthorizationService
Declaration
protected IAuthorizationService AuthorizationService { get; }
Property Value
| Type | Description |
|---|---|
| Microsoft.AspNetCore.Authorization.IAuthorizationService |
CurrentUser
Declaration
protected ICurrentUser CurrentUser { get; }
Property Value
| Type | Description |
|---|---|
| ICurrentUser |
Options
Declaration
protected AbpWidgetOptions Options { get; }
Property Value
| Type | Description |
|---|---|
| AbpWidgetOptions |
Methods
IsGrantedAsync(string)
Declaration
public Task<bool> IsGrantedAsync(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<TResult><bool> |
IsGrantedAsync(Type)
Declaration
public Task<bool> IsGrantedAsync(Type widgetComponentType)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Type | widgetComponentType |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<TResult><bool> |