开发者

Monotouch - WCF Binding Timeouts not being obeyed

A service is created via the Silverlight service console program "slsvcutil"

We use this generated code and set timeouts, but the timeouts are not being obeyed. We have them set to 5 s开发者_C百科econds, but the client doesn;t time out for over a minute (default)

svc = new MyServiceClient (........);
svc.Endpoint.Binding.OpenTimeout = Settings.TimeOutServiceOpen;
svc.Endpoint.Binding.CloseTimeout = Settings.TimeOutServiceClose;
svc.Endpoint.Binding.ReceiveTimeout = Settings.TimeOutServiceRecieve;
svc.Endpoint.Binding.SendTimeout = Settings.TimeOutServiceSend;


Appears to be a bug. Bug has been submitted to Monotouch team.


Use this instead:

svc.InnerChannel.OperationTimeout = ....

This seems to work for me.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜