Reputation: 4560
I need to find out what is the difference between :-
client.InnerChannel.OperationTimeout = New TimeSpan(0, 0, 120)
And
binding.SendTimeout = New TimeSpan(0, 10, 0)
binding.ReceiveTimeout = New TimeSpan(0, 10, 0)
(This on the client side)
Basically we are after setting the time from when the service is open (from request) to retrieve (from response)
And not knowing the difference above is given me a lack of confidence
Thanks
EDIT
As there are many links and a lot of reading, the answer is
SendTimeout is used to initialize the OperationTimeout, which governs the whole interaction for sending a message (including receiving a reply message in a request-reply case). This timeout also applies when sending reply messages from a CallbackContract method
Upvotes: 0
Views: 100
Reputation: 5822
"Which is where? Nothing on MSDN..."
http://blogs.msdn.com/b/hongmeig/archive/2010/03/06/timeouts-in-wcf-and-their-default-values.aspx
https://msdn.microsoft.com/en-us/library/hh924831(v=vs.110).aspx https://msdn.microsoft.com/en-us/library/system.servicemodel.channels.binding.opentimeout(v=vs.110).aspx
Even a google search yields in results :)
Difference between OperationTimeout and SendTimeout in WCF
http://final-proj.blogspot.co.uk/2009/09/wcf-timeouts.html
essentially the OperationTimeout is just that... the time out value for an operation to complete and come back within the specified timeout value. It's like "it should take you x minutes to make a cup of coffee"... and if you don't then its a timeout. In other words, it is the time taken for an operation to complete.
Upvotes: 1