增加YidHelper快速使用方法
This commit is contained in:
@@ -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说明
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user