Class UTCSecondIdGenerator
Identifier generator based on the current Unix time in seconds (UTC).
public class UTCSecondIdGenerator : IdGenerator
- Inheritance
-
UTCSecondIdGenerator
- Inherited Members
- Extension Methods
Constructors
UTCSecondIdGenerator()
public UTCSecondIdGenerator()
Methods
GetNextId()
Gets the next identifier based on Unix time in seconds.
public override long GetNextId()
Returns
- long
The Unix timestamp in seconds.