AuthorizationMiddleware 类

定义

启用授权功能的中间件。

public ref class AuthorizationMiddleware
public class AuthorizationMiddleware
type AuthorizationMiddleware = class
Public Class AuthorizationMiddleware
继承
AuthorizationMiddleware

构造函数

AuthorizationMiddleware(RequestDelegate, IAuthorizationPolicyProvider, IServiceProvider, ILogger<AuthorizationMiddleware>)

初始化 AuthorizationMiddleware 的新实例。

AuthorizationMiddleware(RequestDelegate, IAuthorizationPolicyProvider, IServiceProvider)

初始化 AuthorizationMiddleware 的新实例。

AuthorizationMiddleware(RequestDelegate, IAuthorizationPolicyProvider)

初始化 AuthorizationMiddleware 的新实例。

方法

Invoke(HttpContext)

调用执行授权的中间件。

适用于