AuthorizationMiddlewareResultHandler.HandleAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Evaluates the authorization requirement and processes the authorization result.
public:
virtual System::Threading::Tasks::Task ^ HandleAsync(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::AspNetCore::Http::HttpContext ^ context, Microsoft::AspNetCore::Authorization::AuthorizationPolicy ^ policy, Microsoft::AspNetCore::Authorization::Policy::PolicyAuthorizationResult ^ authorizeResult);
public System.Threading.Tasks.Task HandleAsync (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Http.HttpContext context, Microsoft.AspNetCore.Authorization.AuthorizationPolicy policy, Microsoft.AspNetCore.Authorization.Policy.PolicyAuthorizationResult authorizeResult);
abstract member HandleAsync : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Authorization.AuthorizationPolicy * Microsoft.AspNetCore.Authorization.Policy.PolicyAuthorizationResult -> System.Threading.Tasks.Task
override this.HandleAsync : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Authorization.AuthorizationPolicy * Microsoft.AspNetCore.Authorization.Policy.PolicyAuthorizationResult -> System.Threading.Tasks.Task
Public Function HandleAsync (next As RequestDelegate, context As HttpContext, policy As AuthorizationPolicy, authorizeResult As PolicyAuthorizationResult) As Task
Parameters
- next
- RequestDelegate
The next middleware in the application pipeline. Implementations may not invoke this if the authorization did not succeed.
- context
- HttpContext
The HttpContext.
- policy
- AuthorizationPolicy
The AuthorizationPolicy for the resource.
- authorizeResult
- PolicyAuthorizationResult
The result of authorization.