コード例 #1
0
        protected void ShowCache()
        {
            lblConsole.Text = "当前程序集缓存数:" + SoapClientCache.GetSoapClientNum() + "<br>";
            List <String> urls = SoapClientCache.GetSoapClientCacheList();

            foreach (var item in urls)
            {
                lblConsole.Text += item + "<br>";
            }
        }
コード例 #2
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();
     }
 }
コード例 #3
0
 /// <summary>
 /// 预编译程序集
 /// </summary>
 /// <param name="url"></param>
 /// <param name="serviceName"></param>
 protected void PreCompilerAssembly(String url, String serviceName)
 {
     SoapClientCache.GetItem(url, serviceName);
 }
コード例 #4
0
 /// <summary>
 /// 移除缓存
 /// </summary>
 /// <param name="url"></param>
 protected void RemoveAssemblyCache(String url)
 {
     SoapClientCache.ClearCache(url);
 }