DefaultAuthorizationService Constructors

Definition

Overloads

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

Creates a new instance of DefaultAuthorizationService.

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

Creates a new instance of DefaultAuthorizationService.

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

Creates a new instance of DefaultAuthorizationService.

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

Creates a new instance of 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))

Parameters

policyProvider
IAuthorizationPolicyProvider

The IAuthorizationPolicyProvider used to provide policies.

handlers
IEnumerable<IAuthorizationHandler>

The handlers used to fulfill IAuthorizationRequirements.

logger
ILogger<DefaultAuthorizationService>

The logger used to log messages, warnings and errors.

Applies to

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

Source:
DefaultAuthorizationService.cs
Source:
DefaultAuthorizationService.cs
Source:
DefaultAuthorizationService.cs
Source:
DefaultAuthorizationService.cs
Source:
DefaultAuthorizationService.cs
Source:
DefaultAuthorizationService.cs
Source:
DefaultAuthorizationService.cs
Source:
DefaultAuthorizationService.cs
Source:
DefaultAuthorizationService.cs

Creates a new instance of 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))

Parameters

policyProvider
IAuthorizationPolicyProvider

The IAuthorizationPolicyProvider used to provide policies.

handlers
IAuthorizationHandlerProvider

The handlers used to fulfill IAuthorizationRequirements.

logger
ILogger<DefaultAuthorizationService>

The logger used to log messages, warnings and errors.

contextFactory
IAuthorizationHandlerContextFactory

The IAuthorizationHandlerContextFactory used to create the context to handle the authorization.

evaluator
IAuthorizationEvaluator

The IAuthorizationEvaluator used to determine if authorization was successful.

Applies to

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

Creates a new instance of 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))

Parameters

policyProvider
IAuthorizationPolicyProvider

The IAuthorizationPolicyProvider used to provide policies.

handlers
IEnumerable<IAuthorizationHandler>

The handlers used to fulfill IAuthorizationRequirements.

logger
ILogger<DefaultAuthorizationService>

The logger used to log messages, warnings and errors.

contextFactory
IAuthorizationHandlerContextFactory

The IAuthorizationHandlerContextFactory used to create the context to handle the authorization.

evaluator
IAuthorizationEvaluator

The IAuthorizationEvaluator used to determine if authorzation was successful.

Applies to