ข้ามไปยังเนื้อหา

Interface IAuthorizationPolicyCatalog

เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน

Namespace: Cephalon.Abstractions.Authorization
Assembly: Cephalon.Abstractions.dll

Exposes the authorization policies visible to the current runtime.

public interface IAuthorizationPolicyCatalog

Gets all authorization policies visible to the current runtime.

IReadOnlyList<AuthorizationPolicyDescriptor> Policies { get; }

IReadOnlyList<AuthorizationPolicyDescriptor>

Gets one authorization policy by its stable identifier.

AuthorizationPolicyDescriptor? GetById(string policyId)

policyId string

The authorization-policy identifier to resolve.

AuthorizationPolicyDescriptor?

The matching policy, or null when it is not active.

Gets all authorization policies that support the requested mode.

IReadOnlyList<AuthorizationPolicyDescriptor> GetByMode(AuthorizationMode mode)

mode AuthorizationMode

The authorization mode to filter by.

IReadOnlyList<AuthorizationPolicyDescriptor>

The matching policies, or an empty list when none support the requested mode.