Browse Source

增加YidHelper快速使用方法

tags/v1.0.0
zhouzj 4 years ago
parent
commit
0f388ffcfc
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      README.md
  2. +2
    -2
      src/Yitter.IdGenerator/YidGenerator.cs

+ 2
- 2
README.md View File

@@ -171,7 +171,7 @@ var options = new IdGeneratorOptions()
WorkerId = 1 WorkerId = 1
}; };


var newId = new YitIdGenerator(options).NewLong();
var newId = new YidGenerator(options).NewLong();
``` ```


#### 传统雪花算法 #### 传统雪花算法
@@ -182,7 +182,7 @@ var options = new IdGeneratorOptions()
WorkerId = 1 WorkerId = 1
}; };


var newId = new YitIdGenerator(options).NewLong();
var newId = new YidGenerator(options).NewLong();
``` ```


#### options说明 #### options说明


+ 2
- 2
src/Yitter.IdGenerator/YidGenerator.cs View File

@@ -14,7 +14,7 @@ using System.Threading;
namespace Yitter.IdGenerator namespace Yitter.IdGenerator
{ {
public class YitIdGenerator : IIdGenerator
public class YidGenerator : IIdGenerator
{ {
private ISnowWorker _SnowWorker { get; set; } private ISnowWorker _SnowWorker { get; set; }
@@ -25,7 +25,7 @@ namespace Yitter.IdGenerator
} }
public YitIdGenerator(IdGeneratorOptions options)
public YidGenerator(IdGeneratorOptions options)
{ {
if (options == null) if (options == null)
{ {


Loading…
Cancel
Save