Class NavigationAuthorizeAttribute.NavigationAuthorizeFilter
A filter for checking navigation authorization.
Inheritance
object
NavigationAuthorizeAttribute.NavigationAuthorizeFilter
Implements
IAsyncAuthorizationFilter
IFilterMetadata
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DataWeb.Filter
Assembly: DataWeb.Core.dll
Syntax
public class NavigationAuthorizeAttribute.NavigationAuthorizeFilter : IAsyncAuthorizationFilter, IFilterMetadata
Constructors
NavigationAuthorizeFilter(ResponseMode)
Initializes a new instance of the NavigationAuthorizeAttribute.NavigationAuthorizeFilter class.
Declaration
public NavigationAuthorizeFilter(NavigationAuthorizeAttribute.ResponseMode responseMode)
Parameters
Type | Name | Description |
---|---|---|
NavigationAuthorizeAttribute.ResponseMode | responseMode | The response mode of the filter. |
Remarks
Uses NavigationAuthorizeAttribute.ResponseMode enum.
Methods
OnAuthorizationAsync(AuthorizationFilterContext)
Called asynchronously to perform authorization for the specified context.
Declaration
public Task OnAuthorizationAsync(AuthorizationFilterContext context)
Parameters
Type | Name | Description |
---|---|---|
AuthorizationFilterContext | context | The Microsoft.AspNetCore.Mvc.Filters.AuthorizationFilterContext. |
Returns
Type | Description |
---|---|
Task | A System.Threading.Tasks.Task representing the asynchronous operation. |
Implements
Microsoft.AspNetCore.Mvc.Filters.IAsyncAuthorizationFilter
Microsoft.AspNetCore.Mvc.Filters.IFilterMetadata