//宣告:
delegate void CallRefreshServerIpsDelegate(int aaa, int bbb, string logPath);
//使用:
CallRefreshServerIpsDelegate dlgt = new CallRefreshServerIpsDelegate(this.CallRefreshServerIps);
dlgt.BeginInvoke(aaa, bbb, logPath, null, null);
//Function:
private void CallRefreshServerIps(int aaa, int bbb, string logPath )
{
...
}
注意: 非同步的呼叫,在function內不可存在任何有關HttpWebRequest、HttpWebResponse的物件。
例如:
Request.ServerVariables["REMOTE_ADDR"] ...