IGDIDProvider TryGenerateManyConsecutiveGDIDs Method NFX Class Library

[This is preliminary documentation and is subject to change.]

Tries to generate many consecutive Globally-Unique distributed ID (GDID) from the same authority for the supplied sequence name. If the reserved block gets exhausted, then the returned ID array length may be less than requested

Namespace: NFX.DataAccess
Assembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
Syntax

GDID[] TryGenerateManyConsecutiveGDIDs(
	string scopeName,
	string sequenceName,
	int gdidCount,
	Nullable<ulong> vicinity = 1152921504606846975,
	bool noLWM = false
)

Parameters

scopeName
Type: OnlineSystem String
The name of scope where sequences are kept
sequenceName
Type: OnlineSystem String
The name of sequence within the scope for which ID to be obtained
gdidCount
Type: OnlineSystem Int32
How many Consecutive GDIDs from the same authority should the system try to reserve
vicinity (Optional)
Type: OnlineSystem Nullable OnlineUInt64 
The location on ID counter scale, the authority may disregard this parameter
noLWM (Optional)
Type: OnlineSystem Boolean
When true, does not start async fetch of the next ID block while the current block reaches low-water-mark. This may not be desired in some short-lived processes. The provider may disregard this flag

Return Value

Type:  GDID 
The GDID[] instance which may have less elements than requested by gdidCount
See Also