Table of Contents

Class UTCMillisecondIdGenerator

Namespace
Ecng.Common
Assembly
Ecng.Common.dll

Identifier generator based on the current Unix time in milliseconds (UTC).

public class UTCMillisecondIdGenerator : IdGenerator
Inheritance
UTCMillisecondIdGenerator
Inherited Members
Extension Methods

Constructors

UTCMillisecondIdGenerator()

public UTCMillisecondIdGenerator()

Methods

GetNextId()

Gets the next identifier based on Unix time in milliseconds.

public override long GetNextId()

Returns

long

The Unix timestamp in milliseconds.