.NET遠程處理用於我的brownfield應用程序。我們決定爲我們的遠程處理方法設置超時。遠程處理設置超時
System.Collections.IDictionary properties = new System.Collections.Hashtable();
properties["name"] = Ipc_Channel_Name;
properties["timeout"] = 1 * 1000;
IChannel clientChannel = new IpcClientChannel(properties, null);
ChannelServices.RegisterChannel(clientChannel, false);
問題是,看起來超時不起作用。我通過在調用的代碼中設置System.Threading.Thread.Sleep(5 * 1000);
來檢查它。 IpcClientChannel不支持超時的原因是什麼?
如何設置超時時間?
任何想法?問題仍然存在。 – 2010-06-24 13:22:20