public static void UnCreateSuperClient()
 {
     if (superclient != null)
     {
         superclient.Dispose();
     }
 }
示例#2
0
 private static void UnCreateSuperClient()
 {
     if (superClientLink != null)
     {
         superClientLink.Dispose();
     }
 }
示例#3
0
 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);
     }
 }
示例#4
0
 private void button3_Click(object sender, EventArgs e)
 {
     clientlink.Dispose();
 }