Class NavigationAuthorizeAttribute.NavigationAuthorizeFilter
A filter for checking navigation authorization.
Inherited Members
Namespace: DataWeb.Filter
Assembly: DataWeb.Core.dll
Syntax
public class NavigationAuthorizeAttribute.NavigationAuthorizeFilter : IAsyncAuthorizationFilter, IFilterMetadata
Remarks
Initializes a new instance of the NavigationAuthorizeAttribute.NavigationAuthorizeFilter class.
Constructors
NavigationAuthorizeFilter(ResponseMode, ResponseErrorCode)
A filter for checking navigation authorization.
Declaration
public NavigationAuthorizeFilter(NavigationAuthorizeAttribute.ResponseMode responseMode, NavigationAuthorizeAttribute.ResponseErrorCode responseErrorCode)
Parameters
Type | Name | Description |
---|---|---|
NavigationAuthorizeAttribute.ResponseMode | responseMode | The response mode of the filter. |
NavigationAuthorizeAttribute.ResponseErrorCode | responseErrorCode | The response mode of the filter. |
Remarks
Initializes a new instance of the NavigationAuthorizeAttribute.NavigationAuthorizeFilter class.
Methods
OnAuthorizationAsync(AuthorizationFilterContext)
Called asynchronously to perform authorization for the specified context.
Declaration
public Task OnAuthorizationAsync(AuthorizationFilterContext context)
Parameters
Type | Name | Description |
---|---|---|
AuthorizationFilterContext | context |
Returns
Type | Description |
---|---|
Task | A Task representing the asynchronous operation. |