Source/NFX/DataAccess/IUniqueSequenceProvider.cs
/// <summary>
/// Generates one ID for the supplied sequence name.
/// Note: do not confuse with block pre-allocation, which is an internal optimization.
/// Even if 100 IDs are pre-allocated the method returns one unique ID
/// </summary>
/// <param name="scopeName">The name of scope where sequences are kept</param>
/// <param name="sequenceName">The name of sequence within the scope for which ID to be obtained</param>
/// <param name="blockSize">If >0 specifies how many sequence values to pre-allocate, otherwise provider would use its default setting</param>
/// <param name="vicinity">The location on ID counter scale, the issuing authority may disregard this parameter</param>
/// <param name="noLWM">
///  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
/// </param>
/// <returns>The new ULONG sequence value</returns>
Generates one ID for the supplied sequence name.
Note: do not confuse with block pre-allocation, which is an internal optimization.
Even if 100 IDs are pre-allocated the method returns one unique ID
Generates one ID for the supplied sequence name . Note : do not confuse with block pre - allocation which is an internal optimization . Even if 100 IDs are pre - allocated the method returns one unique ID
ulong GenerateOneSequenceID(string scopeName,
                                    string sequenceName,
                                    int blockSize = 0,
                                    ulong? vicinity = ulong.MaxValue,
                                    bool noLWM = false);
ulong GenerateOneSequenceID ( string scopeName , string sequenceName , int blockSize = 0 , ulong ? vicinity = ulong . MaxValue , bool noLWM = false ) ;
Generates one ID for the supplied sequence name.
Generates one ID for the supplied sequence name .
The new ULONG sequence value
The new ULONG sequence value
scopeName
string
The name of scope where sequences are kept
The name of scope where sequences are kept
sequenceName
string
The name of sequence within the scope for which ID to be obtained
The name of sequence within the scope for which ID to be obtained
blockSize
int
If >0 specifies how many sequence values to pre-allocate, otherwise provider would use its default setting
If > 0 specifies how many sequence values to pre - allocate otherwise provider would use its default setting
vicinity
ulong?
The location on ID counter scale, the issuing authority may disregard this parameter
The location on ID counter scale the issuing authority may disregard this parameter
noLWM
bool
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
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