| @@ -54,17 +54,17 @@ namespace Yitter.OrgSystem.TestA | |||||
| while (true) | while (true) | ||||
| { | { | ||||
| RunSingle(); | |||||
| //RunSingle(); | |||||
| // Go(options); | // Go(options); | ||||
| // RustDll(); | |||||
| CallDll(); | |||||
| Thread.Sleep(1000); // 每隔1秒执行一次Go | Thread.Sleep(1000); // 每隔1秒执行一次Go | ||||
| } | } | ||||
| } | } | ||||
| [DllImport("yitidgen.dll", CallingConvention = CallingConvention.StdCall)] | |||||
| [DllImport("yitidgenc.dll", CallingConvention = CallingConvention.StdCall)] | |||||
| public static extern long NextId(); | public static extern long NextId(); | ||||
| private static void RustDll() | |||||
| private static void CallDll() | |||||
| { | { | ||||
| int i = 0; | int i = 0; | ||||
| long id = 0; | long id = 0; | ||||