Enum GrantUseState
- Namespace
- AsiBackbone.Core.CapabilityGrants
- Assembly
- AsiBackbone.Core.dll
Identifies the outcome reported by an ICapabilityGrantUseStore when a capability grant use is checked and consumed.
public enum GrantUseState
Fields
Accepted = 5The use was within the allowed use count and has been consumed.
Cancelled = 3The grant has been cancelled, so validation denies.
Stopped = 2The grant has been stopped by the host, so validation treats it as revoked and denies.
The use store could not determine the use state, so validation defers rather than allowing.
Unspecified = 0No use state was assigned. Zero is a rejected sentinel so a default value cannot mean "accepted".
UseLimitExceeded = 1The grant has already reached its allowed use count, or its use-tracking retention has elapsed, so validation denies.
Remarks
Only Accepted lets validation continue. Every other state fails validation, and an unrecognized value escalates.