2013-04-24 37 views
0

我的应用程序连接了一个WCF服务(.NET 4.5)。我使用slsvcutil(silverligth 5)构建代理,并且工作正常。 但我有超时问题。我在1分钟内出现错误。 这个it's我的代码:如何在xmarin droid上设置超时wcf

    BasicHttpBinding bindin = new BasicHttpBinding(); 
        bindin.MaxReceivedMessageSize = 267386880; 

        var timeout = new TimeSpan(0, 10, 0); 
        bindin.SendTimeout = timeout; 
        bindin.OpenTimeout = timeout; 
        bindin.ReceiveTimeout = timeout; 

        wcf = new ServicioInasaClient(bindin, new EndpointAddress(editHost.Text)); 

感谢

回答

0

我解决了它:

wcf.InnerChannel.OperationTimeout = timeout;