IIdGeneratorNewId Method Hazelcast .Net Client Class Library
Generates and returns cluster-wide unique id.

Namespace: Hazelcast.Core
Assembly: Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.6.1.0
Syntax

long NewId()

Return Value

Type: Int64
cluster-wide new unique id
Remarks

Generates and returns cluster-wide unique id. Generated ids are guaranteed to be unique for the entire cluster as long as the cluster is live. If the cluster restarts then id generation will start from 0.
See Also

Reference