1
0
mirror of synced 2025-12-29 08:27:57 +08:00

增加YidHelper快速使用方法

This commit is contained in:
zhouzj
2021-03-12 13:48:14 +08:00
parent 13cdd1cea3
commit 0f388ffcfc
2 changed files with 4 additions and 4 deletions

View File

@@ -171,7 +171,7 @@ var options = new IdGeneratorOptions()
WorkerId = 1
};
var newId = new YitIdGenerator(options).NewLong();
var newId = new YidGenerator(options).NewLong();
```
#### 传统雪花算法
@@ -182,7 +182,7 @@ var options = new IdGeneratorOptions()
WorkerId = 1
};
var newId = new YitIdGenerator(options).NewLong();
var newId = new YidGenerator(options).NewLong();
```
#### options说明

View File

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