开发者

DataServiceContext.Timeout Property Unit of Time

开发者 https://www.devze.com 2023-01-10 05:23 出处:网络
I am trying to determine what is the unit of time for the ADO.Net Data Services timeout property. MSDN help doesn\'t identify it:

I am trying to determine what is the unit of time for the ADO.Net Data Services timeout property. MSDN help doesn't identify it:

http://msdn.microsoft.com/en-us/library/system.data.services.client.dataservicecontext.timeout开发者_如何学运维.aspx

Can anyone confirm what the property value represents?


With some testing it looks like the value determines the number of seconds before it will timeout.


The unit should be milliseconds (however @eyesnz has not found that to be correct). According to the MSDN DataServiceContext.Timeout Property page:

This value is passed to the Timeout property of the underlying HttpWebRequest object. The value must be set before executing any query or update operations against the target data service can affect the request. The value may be changed between requests to a data service and the new value will be picked up by the next data service request.

Referring to the MSDN HtppWebRequest.Timeout Property page:

The number of milliseconds to wait before the request times out. The default value is 100,000 milliseconds (100 seconds).


The unit is seconds. Documentation around this has been correctly updated for .Net 4 http://msdn.microsoft.com/en-us/library/system.data.services.client.dataservicecontext.timeout.aspx

0

精彩评论

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