public static void UnCreateSuperClient() { if (superclient != null) { superclient.Dispose(); } }
private static void UnCreateSuperClient() { if (superClientLink != null) { superClientLink.Dispose(); } }
static void TestConcurrency() { try { ClientLink clientlink = new ClientLink("TestWcfPerformance", "Books.Service"); clientlink.CreateConnection(); int num = 100; while (num > 0) { //num -= 1; clientlink.Request("bookWcfController", "GetDiseaseData", null); Thread.Sleep(time); } clientlink.Dispose(); } catch (Exception err) { Console.WriteLine(err.Message); } }
private void button3_Click(object sender, EventArgs e) { clientlink.Dispose(); }