Class MillisecondIdGenerator
Identifier generator based on milliseconds. Each subsequent call to GetNextId() returns the number of milliseconds elapsed since the instance was created.
public class MillisecondIdGenerator : IdGenerator
- Inheritance
-
MillisecondIdGenerator
- Inherited Members
- Extension Methods
Constructors
MillisecondIdGenerator()
Initializes a new instance of the MillisecondIdGenerator class.
public MillisecondIdGenerator()
Methods
GetNextId()
Gets the next identifier representing the number of milliseconds elapsed since the object was created.
public override long GetNextId()
Returns
- long
The number of milliseconds elapsed.