AuthorizationMiddleware Конструкторы

Определение

Перегрузки

AuthorizationMiddleware(RequestDelegate, IAuthorizationPolicyProvider)

Инициализирует новый экземпляр AuthorizationMiddleware.

AuthorizationMiddleware(RequestDelegate, IAuthorizationPolicyProvider, IServiceProvider)

Инициализирует новый экземпляр AuthorizationMiddleware.

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

Инициализирует новый экземпляр AuthorizationMiddleware.

AuthorizationMiddleware(RequestDelegate, IAuthorizationPolicyProvider)

Исходный код:
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)

Исходный код:
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>)

Исходный код:
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

Следующее ПО промежуточного слоя в конвейере ПО промежуточного слоя приложения.

Применяется к