Class SnowflakeIdGeneratorOptions
- Namespace
- SnowflakeID
- Assembly
- SnowflakeIDGenerator.DependencyInjection.dll
Option object for SnowflakeIDGenerator.
public class SnowflakeIdGeneratorOptions
- Inheritance
-
SnowflakeIdGeneratorOptions
- Inherited Members
Properties
Epoch
Gets or sets the epoch date as a string.
public string Epoch { get; set; }
Property Value
- string
The epoch date as a string in ISO 8601 format.
Remarks
This property allows setting the epoch date using a string representation. The date is parsed and stored internally as a DateTime object in UTC.
MachineId
Gets or sets the machine ID.
public int MachineId { get; set; }