Commit a975f664 刘韬

增加 GetCarrierList的 网络超时

1 个父辈 d20e4e34
...@@ -210,6 +210,10 @@ namespace DeviceLibrary ...@@ -210,6 +210,10 @@ namespace DeviceLibrary
binding.MaxBufferSize = 1073741824; binding.MaxBufferSize = 1073741824;
binding.MaxBufferPoolSize = 5242880; binding.MaxBufferPoolSize = 5242880;
binding.AllowCookies = false; binding.AllowCookies = false;
binding.OpenTimeout = TimeSpan.FromMinutes(5);
binding.CloseTimeout = TimeSpan.FromMinutes(5);
binding.SendTimeout = TimeSpan.FromMinutes(5);
binding.ReceiveTimeout = TimeSpan.FromMinutes(10);
Uri baseAddress = new Uri(Setting_Init.Device_StoreServerURL); Uri baseAddress = new Uri(Setting_Init.Device_StoreServerURL);
EndpointAddress endpointAddress = new EndpointAddress(baseAddress.ToString()); EndpointAddress endpointAddress = new EndpointAddress(baseAddress.ToString());
var towerAppWSClient = new MydataWcfServiceTest.ServiceReference2.TowerAppWSClient(binding, endpointAddress); var towerAppWSClient = new MydataWcfServiceTest.ServiceReference2.TowerAppWSClient(binding, endpointAddress);
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!