MillisecondIdGenerator

Ecng.Common

Identifier generator based on milliseconds. Each subsequent call to GetNextId returns the number of milliseconds elapsed since the instance was created.

Наследует: IdGenerator

Конструкторы

MillisecondIdGenerator
public MillisecondIdGenerator()
millisecondIdGenerator = MillisecondIdGenerator()

Initializes a new instance of the MillisecondIdGenerator class.

Методы

GetNextId
public override long GetNextId()
result = millisecondIdGenerator.GetNextId()

Gets the next identifier representing the number of milliseconds elapsed since the object was created.

Возвращает: The number of milliseconds elapsed.