I am calling the service from code and if the service is stopped for any reason it gives me EndPointNotFound exception.
<binding name="NormalMode" transferMode="Buffered" receiveTimeout="24.20:31:23.6470000">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/>
<security mode="None" />
</binding>
I haven't set the openTimeOut so it will consider the default 1 minute timeout.
I am calling the service this way,
private void MyServiceCall(Action serviceCall)
{
try
{
if (serviceCall != null)
{
serviceCall();
}
}
catch (EndpointNotFoundException endpointNotFoundException)
{
throw new EndpointNotFoundException(endpointNotFoundException.Message, endpointNotFoundException);
}
My question is if service is stopped then will it take 1 minute to throw the EndPointNotFoundException??
EDIT::
In this case i know that service is stopped. I am testing it that way by stopping the service. The question is we have developed the disconnected senario and if service is stoped than it will return the default data but it takes time so i am investigatig is it the openTimeOut which is responsible for it.