From 13cdd1cea3adf89cc2b8fd9b527c33edeabd73ee Mon Sep 17 00:00:00 2001 From: zhouzj Date: Fri, 12 Mar 2021 13:42:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0YidHelper=E5=BF=AB=E9=80=9F?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Yitter.IdGenTest/Program.cs | 4 ++-- .../{YitIdGenerator.cs => YidGenerator.cs} | 0 src/Yitter.IdGenerator/YidHelper.cs | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) rename src/Yitter.IdGenerator/{YitIdGenerator.cs => YidGenerator.cs} (100%) diff --git a/src/Yitter.IdGenTest/Program.cs b/src/Yitter.IdGenTest/Program.cs index afef950..fa88c8c 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 8f7a018..15b488b 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(); -- GitLab