Table of Contents

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 = 5

The use was within the allowed use count and has been consumed.

Cancelled = 3

The grant has been cancelled, so validation denies.

Stopped = 2

The grant has been stopped by the host, so validation treats it as revoked and denies.

Unavailable = 4

The use store could not determine the use state, so validation defers rather than allowing.

Unspecified = 0

No use state was assigned. Zero is a rejected sentinel so a default value cannot mean "accepted".

UseLimitExceeded = 1

The 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.