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.