auto commit
This commit is contained in:
@@ -39,24 +39,11 @@ namespace Yitter.OrgSystem.TestA
|
|||||||
[DllImport("yitidgen.dll", CallingConvention = CallingConvention.StdCall)]
|
[DllImport("yitidgen.dll", CallingConvention = CallingConvention.StdCall)]
|
||||||
public static extern int TestId();
|
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)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
Console.WriteLine("Hello World! C#");
|
Console.WriteLine("Hello World! C#");
|
||||||
|
|
||||||
//RegisterWorkerId();
|
|
||||||
//while (true)
|
|
||||||
//{
|
|
||||||
// Thread.Sleep(20000);
|
|
||||||
//}
|
|
||||||
|
|
||||||
var options = new IdGeneratorOptions()
|
var options = new IdGeneratorOptions()
|
||||||
{
|
{
|
||||||
Method = method,
|
Method = method,
|
||||||
@@ -86,15 +73,10 @@ namespace Yitter.OrgSystem.TestA
|
|||||||
RunSingle();
|
RunSingle();
|
||||||
//CallDll();
|
//CallDll();
|
||||||
//Go(options);
|
//Go(options);
|
||||||
|
|
||||||
Thread.Sleep(1000); // 每隔1秒执行一次Go
|
Thread.Sleep(1000); // 每隔1秒执行一次Go
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void RegisterWorkerId()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void CallDll()
|
private static void CallDll()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user