Sequence¶
In-memory int sequence generator; not thread-safe, so concurrent callers can observe or produce duplicate values.*
Purpose¶
- In-memory
intsequence generator; not thread-safe, so concurrent callers can observe or produce duplicate values.*
Context¶
- Namespace:
SAIF.Common - Assembly/package:
SAIF.Framework.Common
Public members¶
| Member | Signature | Purpose |
|---|---|---|
| NextValue | public override int NextValue { get; } |
Pre-increments and returns CurrentValue as an int. (BR-066) |
| Reset() | public override void Reset() |
Resets CurrentValue to 0. |
| Sequence(int startValue = 0) | public Sequence(int startValue = 0) |
Constructs the sequence, defaulting the starting value to 0. |
Note: Statements marked with * were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts. Statements marked with ** could not be confirmed; treat as unknown until verified.
Sources¶
Common/SAIF.Common/Classes/Sequence.cs