1
0
mirror of synced 2026-04-18 22:38:41 +08:00

auto commit

This commit is contained in:
yitter
2021-04-02 23:14:30 +08:00
parent 93da5e850d
commit 5bc679976e
2 changed files with 37 additions and 15 deletions

View File

@@ -29,7 +29,7 @@ namespace WInFormApp
//public static extern ulong RegisterWorkerId2();
[DllImport("yitidgengo.dll", CallingConvention = CallingConvention.StdCall)]
public static extern long UnRegisterWorkerId();
public static extern void UnRegisterWorkerId();
[DllImport("yitidgen.dll", CallingConvention = CallingConvention.StdCall)]
@@ -67,7 +67,14 @@ namespace WInFormApp
private void button1_Click(object sender, EventArgs e)
{
UnRegisterWorkerId();
try
{
UnRegisterWorkerId();
}
catch (Exception ex)
{
txtIdList.Text = ex.Message;
}
// GetWorkerId("localhost", 6379);
}
}