AuthorizationMiddleware 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AuthorizationMiddleware(RequestDelegate, IAuthorizationPolicyProvider)
初始化 AuthorizationMiddleware 的新執行個體。
public:
AuthorizationMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::AspNetCore::Authorization::IAuthorizationPolicyProvider ^ policyProvider);
public AuthorizationMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Authorization.IAuthorizationPolicyProvider policyProvider);
new Microsoft.AspNetCore.Authorization.AuthorizationMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.Authorization.IAuthorizationPolicyProvider -> Microsoft.AspNetCore.Authorization.AuthorizationMiddleware
Public Sub New (next As RequestDelegate, policyProvider As IAuthorizationPolicyProvider)
參數
- next
- RequestDelegate
應用程式中介軟體管線中的下一個中介軟體。
- policyProvider
- IAuthorizationPolicyProvider
適用於
AuthorizationMiddleware(RequestDelegate, IAuthorizationPolicyProvider, IServiceProvider)
初始化 AuthorizationMiddleware 的新執行個體。
public AuthorizationMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Authorization.IAuthorizationPolicyProvider policyProvider, IServiceProvider services);
new Microsoft.AspNetCore.Authorization.AuthorizationMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.Authorization.IAuthorizationPolicyProvider * IServiceProvider -> Microsoft.AspNetCore.Authorization.AuthorizationMiddleware
Public Sub New (next As RequestDelegate, policyProvider As IAuthorizationPolicyProvider, services As IServiceProvider)
參數
- next
- RequestDelegate
應用程式中介軟體管線中的下一個中介軟體。
- policyProvider
- IAuthorizationPolicyProvider
- services
- IServiceProvider
適用於
AuthorizationMiddleware(RequestDelegate, IAuthorizationPolicyProvider, IServiceProvider, ILogger<AuthorizationMiddleware>)
初始化 AuthorizationMiddleware 的新執行個體。
public AuthorizationMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Authorization.IAuthorizationPolicyProvider policyProvider, IServiceProvider services, Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.Authorization.AuthorizationMiddleware> logger);
new Microsoft.AspNetCore.Authorization.AuthorizationMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.Authorization.IAuthorizationPolicyProvider * IServiceProvider * Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.Authorization.AuthorizationMiddleware> -> Microsoft.AspNetCore.Authorization.AuthorizationMiddleware
Public Sub New (next As RequestDelegate, policyProvider As IAuthorizationPolicyProvider, services As IServiceProvider, logger As ILogger(Of AuthorizationMiddleware))
參數
- next
- RequestDelegate
應用程式中介軟體管線中的下一個中介軟體。
- policyProvider
- IAuthorizationPolicyProvider
- services
- IServiceProvider
- logger
- ILogger<AuthorizationMiddleware>