1
0
mirror of synced 2026-04-27 02:38:39 +08:00

auto commit

This commit is contained in:
yitter
2021-04-01 02:38:11 +08:00
parent 43417f41cc
commit 0566c98e3e
48 changed files with 1294 additions and 109 deletions

View File

@@ -55,9 +55,9 @@ namespace Yitter.OrgSystem.TestA
while (true)
{
//RunSingle();
RunSingle();
//CallDll();
//Go(options);
CallDll();
Thread.Sleep(1000); // 每隔1秒执行一次Go
}
}
@@ -65,13 +65,13 @@ namespace Yitter.OrgSystem.TestA
//[DllImport("yitidgenc.dll", CallingConvention = CallingConvention.StdCall)]
//public static extern long NextId();
[DllImport("yitidgenc.dll", CallingConvention = CallingConvention.StdCall)]
[DllImport("yitidgengo.dll", CallingConvention = CallingConvention.StdCall)]
public static extern long NextId();
[DllImport("yitidgenc.dll", CallingConvention = CallingConvention.StdCall)]
[DllImport("yitidgen.dll", CallingConvention = CallingConvention.StdCall)]
public static extern void SetWorkerId(uint workerId);
[DllImport("yitidgenc.dll", CallingConvention = CallingConvention.StdCall)]
[DllImport("yitidgen.dll", CallingConvention = CallingConvention.StdCall)]
public static extern int TestId();
private static void CallDll()