示例#1
0
 protected void btnCompiler_Click(object sender, EventArgs e)
 {
     if (txtPassword.Text == "Tony")
     {
         ManualResetEvent mre = new ManualResetEvent(false);
         for (int i = 0; i < 10; i++)
         {
             Thread t = new Thread(() =>
             {
                 mre.WaitOne();
                 SoapClientItem item = SoapClientCache.GetItem("http://10.30.1.6/CKMService/WebService/ESBEmailService.asmx", "OA_Email");
             });
             t.Start();
         }
         mre.Set();
     }
 }
示例#2
0
 /// <summary>
 /// 预编译程序集
 /// </summary>
 /// <param name="url"></param>
 /// <param name="serviceName"></param>
 protected void PreCompilerAssembly(String url, String serviceName)
 {
     SoapClientCache.GetItem(url, serviceName);
 }