From 5ba22ca1e350be9e4d8d7243254b89fcda5eca2c Mon Sep 17 00:00:00 2001 From: yitter Date: Sun, 4 Apr 2021 02:15:42 +0800 Subject: [PATCH] auto commit --- C#.NET/source/Yitter.IdGenTest/Program.cs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/C#.NET/source/Yitter.IdGenTest/Program.cs b/C#.NET/source/Yitter.IdGenTest/Program.cs index df481ac..c389276 100644 --- a/C#.NET/source/Yitter.IdGenTest/Program.cs +++ b/C#.NET/source/Yitter.IdGenTest/Program.cs @@ -39,24 +39,11 @@ namespace Yitter.OrgSystem.TestA [DllImport("yitidgen.dll", CallingConvention = CallingConvention.StdCall)] public static extern int TestId(); - [DllImport("yitidgengo.dll", CallingConvention = CallingConvention.StdCall)] - public static extern long RegisterWorkerId(string ip, int port, string password, int maxWorkerIdNumber); - //public static extern ulong RegisterWorkerId2(); - - [DllImport("yitidgengo.dll", CallingConvention = CallingConvention.StdCall)] - public static extern void UnRegisterWorkerId(); - static void Main(string[] args) { Console.WriteLine("Hello World! C#"); - //RegisterWorkerId(); - //while (true) - //{ - // Thread.Sleep(20000); - //} - var options = new IdGeneratorOptions() { Method = method, @@ -86,15 +73,10 @@ namespace Yitter.OrgSystem.TestA RunSingle(); //CallDll(); //Go(options); - Thread.Sleep(1000); // 每隔1秒执行一次Go } } - private static void RegisterWorkerId() - { - - } private static void CallDll() {