Zum Hauptinhalt springen

RtDataPermissionDecision

Namespace: Meshmakers.Octo.Runtime.Contracts.DataPermissions

Outcome of a data-permission check. The three outcomes are deliberately distinct so a caller can map them differently: RtDataPermissionDecision.NotVisible must be answered exactly like a missing entity (not found), RtDataPermissionDecision.NotPermitted like a refusal.

public enum RtDataPermissionDecision

Inheritance Object → ValueType → Enum → RtDataPermissionDecision
Implements IComparable, ISpanFormattable, IFormattable, IConvertible

Fields​

NameValueDescription
Allowed0The caller may perform the action.
NotVisible1The caller cannot read the entity (or, for a type-level read check, the type). To the caller the entity does not exist — answer "not found", never "forbidden".
NotPermitted2The entity is visible to the caller but the action is not permitted.