请问一下,客户端在调用一个远程对象的函数时,怎样设置其超时时间?也就是说,如果远程对象操作时间过长,客户端不准备等待,它该怎么办?
就象是连接数据库超时一样,它总得有一个超时的时间吧,请教客户端该怎样设置其超时时间?
我知道通过编程的方式可以
Hashtable props = new Hashtable();
props["name"] = "tcp_rem";
props["timeout"] = 3000;//设置超时时间
TcpChannel _tcpChannel = new TcpChannel(props, null, null);
ChannelServices.RegisterChannel(_tcpChannel, false);
哪么通过配置文件,如何设置timeout?