1
0
mirror of synced 2026-04-19 06:48:39 +08:00

editreadme

This commit is contained in:
zhouzj
2021-03-19 22:28:46 +08:00
parent 1639efb049
commit 97dffad3db
2 changed files with 10 additions and 7 deletions

View File

@@ -24,3 +24,10 @@ var newId = YitIdHelper.NextId();
参考源码:/Contract/IdGeneratorOptions.cs
## 事件说明
1.IIdGenerator.GenIdActionAsync 是一个可以向外部系统异步发送ID生成消息的事件它包含的消息类型有"漂移开始、漂移结束、时间回拨",具体参考 Yitter.IdGenTest 的 Program.cs 启动代码。不过订阅ID异步通知会有细微的性能损失。
2.你可在外部系统的异步async标记方法中调用本算法同步调用同样没问题。