Поделиться через


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

Определение

Перегрузки

DefaultAuthorizationService(IAuthorizationPolicyProvider, IEnumerable<IAuthorizationHandler>, ILogger<DefaultAuthorizationService>)

Создает новый экземпляр DefaultAuthorizationService.

DefaultAuthorizationService(IAuthorizationPolicyProvider, IAuthorizationHandlerProvider, ILogger<DefaultAuthorizationService>, IAuthorizationHandlerContextFactory, IAuthorizationEvaluator, IOptions<AuthorizationOptions>)

Создает новый экземпляр DefaultAuthorizationService.

DefaultAuthorizationService(IAuthorizationPolicyProvider, IEnumerable<IAuthorizationHandler>, ILogger<DefaultAuthorizationService>, IAuthorizationHandlerContextFactory, IAuthorizationEvaluator, IOptions<AuthorizationOptions>)

Создает новый экземпляр DefaultAuthorizationService.

DefaultAuthorizationService(IAuthorizationPolicyProvider, IEnumerable<IAuthorizationHandler>, ILogger<DefaultAuthorizationService>)

Создает новый экземпляр DefaultAuthorizationService.

public:
 DefaultAuthorizationService(Microsoft::AspNetCore::Authorization::IAuthorizationPolicyProvider ^ policyProvider, System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Authorization::IAuthorizationHandler ^> ^ handlers, Microsoft::Extensions::Logging::ILogger<Microsoft::AspNetCore::Authorization::DefaultAuthorizationService ^> ^ logger);
public DefaultAuthorizationService (Microsoft.AspNetCore.Authorization.IAuthorizationPolicyProvider policyProvider, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Authorization.IAuthorizationHandler> handlers, Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.Authorization.DefaultAuthorizationService> logger);
new Microsoft.AspNetCore.Authorization.DefaultAuthorizationService : Microsoft.AspNetCore.Authorization.IAuthorizationPolicyProvider * seq<Microsoft.AspNetCore.Authorization.IAuthorizationHandler> * Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.Authorization.DefaultAuthorizationService> -> Microsoft.AspNetCore.Authorization.DefaultAuthorizationService
Public Sub New (policyProvider As IAuthorizationPolicyProvider, handlers As IEnumerable(Of IAuthorizationHandler), logger As ILogger(Of DefaultAuthorizationService))

Параметры

policyProvider
IAuthorizationPolicyProvider

Объект , используемый IAuthorizationPolicyProvider для предоставления политик.

handlers
IEnumerable<IAuthorizationHandler>

Обработчики, используемые для выполнения IAuthorizationRequirements.

logger
ILogger<DefaultAuthorizationService>

Средство ведения журнала, используемое для ведения журнала сообщений, предупреждений и ошибок.

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

DefaultAuthorizationService(IAuthorizationPolicyProvider, IAuthorizationHandlerProvider, ILogger<DefaultAuthorizationService>, IAuthorizationHandlerContextFactory, IAuthorizationEvaluator, IOptions<AuthorizationOptions>)

Исходный код:
DefaultAuthorizationService.cs
Исходный код:
DefaultAuthorizationService.cs
Исходный код:
DefaultAuthorizationService.cs
Исходный код:
DefaultAuthorizationService.cs
Исходный код:
DefaultAuthorizationService.cs
Исходный код:
DefaultAuthorizationService.cs
Исходный код:
DefaultAuthorizationService.cs
Исходный код:
DefaultAuthorizationService.cs
Исходный код:
DefaultAuthorizationService.cs

Создает новый экземпляр DefaultAuthorizationService.

public:
 DefaultAuthorizationService(Microsoft::AspNetCore::Authorization::IAuthorizationPolicyProvider ^ policyProvider, Microsoft::AspNetCore::Authorization::IAuthorizationHandlerProvider ^ handlers, Microsoft::Extensions::Logging::ILogger<Microsoft::AspNetCore::Authorization::DefaultAuthorizationService ^> ^ logger, Microsoft::AspNetCore::Authorization::IAuthorizationHandlerContextFactory ^ contextFactory, Microsoft::AspNetCore::Authorization::IAuthorizationEvaluator ^ evaluator, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Authorization::AuthorizationOptions ^> ^ options);
public DefaultAuthorizationService (Microsoft.AspNetCore.Authorization.IAuthorizationPolicyProvider policyProvider, Microsoft.AspNetCore.Authorization.IAuthorizationHandlerProvider handlers, Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.Authorization.DefaultAuthorizationService> logger, Microsoft.AspNetCore.Authorization.IAuthorizationHandlerContextFactory contextFactory, Microsoft.AspNetCore.Authorization.IAuthorizationEvaluator evaluator, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Authorization.AuthorizationOptions> options);
new Microsoft.AspNetCore.Authorization.DefaultAuthorizationService : Microsoft.AspNetCore.Authorization.IAuthorizationPolicyProvider * Microsoft.AspNetCore.Authorization.IAuthorizationHandlerProvider * Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.Authorization.DefaultAuthorizationService> * Microsoft.AspNetCore.Authorization.IAuthorizationHandlerContextFactory * Microsoft.AspNetCore.Authorization.IAuthorizationEvaluator * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Authorization.AuthorizationOptions> -> Microsoft.AspNetCore.Authorization.DefaultAuthorizationService
Public Sub New (policyProvider As IAuthorizationPolicyProvider, handlers As IAuthorizationHandlerProvider, logger As ILogger(Of DefaultAuthorizationService), contextFactory As IAuthorizationHandlerContextFactory, evaluator As IAuthorizationEvaluator, options As IOptions(Of AuthorizationOptions))

Параметры

policyProvider
IAuthorizationPolicyProvider

Объект , используемый IAuthorizationPolicyProvider для предоставления политик.

handlers
IAuthorizationHandlerProvider

Обработчики, используемые для выполнения IAuthorizationRequirements.

logger
ILogger<DefaultAuthorizationService>

Средство ведения журнала, используемое для ведения журнала сообщений, предупреждений и ошибок.

contextFactory
IAuthorizationHandlerContextFactory

Объект , используемый IAuthorizationHandlerContextFactory для создания контекста для обработки авторизации.

evaluator
IAuthorizationEvaluator

Объект , используемый IAuthorizationEvaluator для определения успешности авторизации.

options
IOptions<AuthorizationOptions>

Используемый AuthorizationOptions объект .

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

DefaultAuthorizationService(IAuthorizationPolicyProvider, IEnumerable<IAuthorizationHandler>, ILogger<DefaultAuthorizationService>, IAuthorizationHandlerContextFactory, IAuthorizationEvaluator, IOptions<AuthorizationOptions>)

Создает новый экземпляр DefaultAuthorizationService.

public:
 DefaultAuthorizationService(Microsoft::AspNetCore::Authorization::IAuthorizationPolicyProvider ^ policyProvider, System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Authorization::IAuthorizationHandler ^> ^ handlers, Microsoft::Extensions::Logging::ILogger<Microsoft::AspNetCore::Authorization::DefaultAuthorizationService ^> ^ logger, Microsoft::AspNetCore::Authorization::IAuthorizationHandlerContextFactory ^ contextFactory, Microsoft::AspNetCore::Authorization::IAuthorizationEvaluator ^ evaluator, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Authorization::AuthorizationOptions ^> ^ options);
public DefaultAuthorizationService (Microsoft.AspNetCore.Authorization.IAuthorizationPolicyProvider policyProvider, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Authorization.IAuthorizationHandler> handlers, Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.Authorization.DefaultAuthorizationService> logger, Microsoft.AspNetCore.Authorization.IAuthorizationHandlerContextFactory contextFactory, Microsoft.AspNetCore.Authorization.IAuthorizationEvaluator evaluator, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Authorization.AuthorizationOptions> options);
new Microsoft.AspNetCore.Authorization.DefaultAuthorizationService : Microsoft.AspNetCore.Authorization.IAuthorizationPolicyProvider * seq<Microsoft.AspNetCore.Authorization.IAuthorizationHandler> * Microsoft.Extensions.Logging.ILogger<Microsoft.AspNetCore.Authorization.DefaultAuthorizationService> * Microsoft.AspNetCore.Authorization.IAuthorizationHandlerContextFactory * Microsoft.AspNetCore.Authorization.IAuthorizationEvaluator * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Authorization.AuthorizationOptions> -> Microsoft.AspNetCore.Authorization.DefaultAuthorizationService
Public Sub New (policyProvider As IAuthorizationPolicyProvider, handlers As IEnumerable(Of IAuthorizationHandler), logger As ILogger(Of DefaultAuthorizationService), contextFactory As IAuthorizationHandlerContextFactory, evaluator As IAuthorizationEvaluator, options As IOptions(Of AuthorizationOptions))

Параметры

policyProvider
IAuthorizationPolicyProvider

Объект , используемый IAuthorizationPolicyProvider для предоставления политик.

handlers
IEnumerable<IAuthorizationHandler>

Обработчики, используемые для выполнения IAuthorizationRequirements.

logger
ILogger<DefaultAuthorizationService>

Средство ведения журнала, используемое для ведения журнала сообщений, предупреждений и ошибок.

contextFactory
IAuthorizationHandlerContextFactory

Объект , используемый IAuthorizationHandlerContextFactory для создания контекста для обработки авторизации.

evaluator
IAuthorizationEvaluator

Объект , используемый IAuthorizationEvaluator для определения успешной авторизации.

options
IOptions<AuthorizationOptions>

Используемый AuthorizationOptions объект .

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