【发布时间】:2010-06-23 14:35:18
【问题描述】:
.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不支持超时的原因吗?
如何设置超时时间?
【问题讨论】:
-
有什么想法吗?这个问题仍然存在。
标签: c# .net timeout remoting .net-remoting