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

Class AuthorizationContext

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

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

Describes the operation-specific context supplied to an authorization evaluation.

public sealed class AuthorizationContext

objectAuthorizationContext

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

AuthorizationContext(string, string?, string?, string?, IReadOnlyDictionary<string, string>?)

Section titled “ AuthorizationContext(string, string?, string?, string?, IReadOnlyDictionary<string, string>?)”

Creates a new authorization context.

public AuthorizationContext(string action, string? policyId = null, string? tenantId = null, string? correlationId = null, IReadOnlyDictionary<string, string>? attributes = null)

action string

The action being requested, such as read, write, or approve.

policyId string?

The explicit policy identifier requested by the caller when one is known.

tenantId string?

The tenant identifier associated with the current operation.

correlationId string?

The correlation identifier associated with the current operation.

attributes IReadOnlyDictionary<string, string>?

Optional operation-specific attributes.

Gets the action being requested.

public string Action { get; }

string

Gets the operation-specific attributes.

public IReadOnlyDictionary<string, string> Attributes { get; }

IReadOnlyDictionary<string, string>

Gets the correlation identifier associated with the current operation.

public string? CorrelationId { get; }

string?

Gets the explicit policy identifier requested by the caller when one is known.

public string? PolicyId { get; }

string?

Gets the tenant identifier associated with the current operation.

public string? TenantId { get; }

string?