Partilhar via


DefaultAuthorizationService Construtores

Definição

Sobrecargas

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

Cria uma nova instância de DefaultAuthorizationService.

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

Cria uma nova instância de DefaultAuthorizationService.

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

Cria uma nova instância de DefaultAuthorizationService.

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

Cria uma nova instância de 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))

Parâmetros

policyProvider
IAuthorizationPolicyProvider

O IAuthorizationPolicyProvider usado para fornecer políticas.

handlers
IEnumerable<IAuthorizationHandler>

Os manipuladores usados para atender IAuthorizationRequirementa s.

logger
ILogger<DefaultAuthorizationService>

O agente usado para registrar mensagens, avisos e erros.

Aplica-se a

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

Origem:
DefaultAuthorizationService.cs
Origem:
DefaultAuthorizationService.cs
Origem:
DefaultAuthorizationService.cs
Origem:
DefaultAuthorizationService.cs
Origem:
DefaultAuthorizationService.cs
Origem:
DefaultAuthorizationService.cs
Origem:
DefaultAuthorizationService.cs
Origem:
DefaultAuthorizationService.cs
Origem:
DefaultAuthorizationService.cs

Cria uma nova instância de 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))

Parâmetros

policyProvider
IAuthorizationPolicyProvider

O IAuthorizationPolicyProvider usado para fornecer políticas.

handlers
IAuthorizationHandlerProvider

Os manipuladores usados para atender IAuthorizationRequirementa s.

logger
ILogger<DefaultAuthorizationService>

O agente usado para registrar mensagens, avisos e erros.

contextFactory
IAuthorizationHandlerContextFactory

O IAuthorizationHandlerContextFactory usado para criar o contexto para lidar com a autorização.

evaluator
IAuthorizationEvaluator

O IAuthorizationEvaluator usado para determinar se a autorização foi bem-sucedida.

Aplica-se a

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

Cria uma nova instância de 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))

Parâmetros

policyProvider
IAuthorizationPolicyProvider

O IAuthorizationPolicyProvider usado para fornecer políticas.

handlers
IEnumerable<IAuthorizationHandler>

Os manipuladores usados para atender IAuthorizationRequirementa s.

logger
ILogger<DefaultAuthorizationService>

O agente usado para registrar mensagens, avisos e erros.

contextFactory
IAuthorizationHandlerContextFactory

O IAuthorizationHandlerContextFactory usado para criar o contexto para lidar com a autorização.

evaluator
IAuthorizationEvaluator

O IAuthorizationEvaluator usado para determinar se a criação foi bem-sucedida.

Aplica-se a