Exemple #1
0
 /// <summary>
 /// 构造一个 <see cref="CombIdGenerator"/>。
 /// </summary>
 /// <param name="generation">给定的 <see cref="CombIdGeneration"/>。</param>
 /// <param name="options">给定的 <see cref="IdGenerationOptions"/>。</param>
 /// <param name="clock">给定的 <see cref="IClockBootstrap"/>。</param>
 public CombIdGenerator(CombIdGeneration generation, IdGenerationOptions options,
                        IClockBootstrap clock)
     : base(options, clock)
 {
     Generation = generation;
 }
Exemple #2
0
 /// <summary>
 /// 使用内置的 <see cref="Bootstrapper.GetClock()"/> 构造一个 <see cref="CombIdGenerator"/>。
 /// </summary>
 /// <param name="generation">给定的 <see cref="CombIdGeneration"/>。</param>
 /// <param name="options">给定的 <see cref="IdGenerationOptions"/>。</param>
 public CombIdGenerator(CombIdGeneration generation, IdGenerationOptions options)
     : this(generation, options, Bootstrapper.GetClock())
 {
 }