AuthorizationMiddleware 构造函数

定义

重载

AuthorizationMiddleware(RequestDelegate, IAuthorizationPolicyProvider)

初始化 AuthorizationMiddleware 的新实例。

AuthorizationMiddleware(RequestDelegate, IAuthorizationPolicyProvider, IServiceProvider)

初始化 AuthorizationMiddleware 的新实例。

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

初始化 AuthorizationMiddleware 的新实例。

AuthorizationMiddleware(RequestDelegate, IAuthorizationPolicyProvider)

Source:
AuthorizationMiddleware.cs

初始化 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

应用程序中间件管道中的下一个中间件。

适用于

AuthorizationMiddleware(RequestDelegate, IAuthorizationPolicyProvider, IServiceProvider)

Source:
AuthorizationMiddleware.cs

初始化 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

应用程序中间件管道中的下一个中间件。

适用于

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

Source:
AuthorizationMiddleware.cs

初始化 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

应用程序中间件管道中的下一个中间件。

适用于