diff --git a/src/Yitter.IdGenTest/Program.cs b/src/Yitter.IdGenTest/Program.cs index afef950e42ba2611221e55c593b09350de99218e..fa88c8cb57461c3cc9a812159cdac695a446dc7a 100644 --- a/src/Yitter.IdGenTest/Program.cs +++ b/src/Yitter.IdGenTest/Program.cs @@ -53,7 +53,7 @@ namespace Yitter.OrgSystem.TestA IdGeneratorOptions options1 = (newConfig); if (IdGen == null) { - IdGen = new YitIdGenerator(options1); + IdGen = new YidGenerator(options1); } if (outputLog) @@ -99,7 +99,7 @@ namespace Yitter.OrgSystem.TestA }; Console.WriteLine("Gen:" + i); - var idGen2 = new YitIdGenerator(options); + var idGen2 = new YidGenerator(options); var test = new GenTest(idGen2, genIdCount, i); if (outputLog) diff --git a/src/Yitter.IdGenerator/YitIdGenerator.cs b/src/Yitter.IdGenerator/YidGenerator.cs similarity index 100% rename from src/Yitter.IdGenerator/YitIdGenerator.cs rename to src/Yitter.IdGenerator/YidGenerator.cs diff --git a/src/Yitter.IdGenerator/YidHelper.cs b/src/Yitter.IdGenerator/YidHelper.cs index 8f7a018f37d5040a247f4c3ac2e97d1986de2993..15b488b9b286470767e2415f2dcdcd8a65494c60 100644 --- a/src/Yitter.IdGenerator/YidHelper.cs +++ b/src/Yitter.IdGenerator/YidHelper.cs @@ -14,7 +14,7 @@ using System.Text; namespace Yitter.IdGenerator { /// - /// 这是一个调用的例子,默认情况下,集成者可以直接使用 NewId()。 + /// 这是一个调用的例子,默认情况下,单机集成者可以直接使用 NewId()。 /// public class YidHelper { @@ -30,7 +30,7 @@ namespace Yitter.IdGenerator public static void SetIdGenerator(IdGeneratorOptions options) { - _IdGenInstance = new YitIdGenerator(options); + _IdGenInstance = new YidGenerator(options); } /// @@ -43,7 +43,7 @@ namespace Yitter.IdGenerator { if (_IdGenInstance == null) { - _IdGenInstance = new YitIdGenerator(new IdGeneratorOptions() { WorkerId = 1 }); + _IdGenInstance = new YidGenerator(new IdGeneratorOptions() { WorkerId = 1 }); } return _IdGenInstance.NewLong();