public SnowflakeBackgroundServices(IRedisCache cache, ISnowflakeIdMaker idMaker) { _cache = cache; _idMaker = idMaker; }
public SnowflakeBackgroundServices(ISnowflakeIdMaker idMaker, IDistributedSupport distributed, IOptions <SnowflakeOption> options) { _idMaker = idMaker; option = options.Value; _distributed = distributed; }