New Posts New Posts RSS Feed: Increase timeout of InvokeServerMethod
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Increase timeout of InvokeServerMethod

 Post Reply Post Reply
Author
DenisK View Drop Down
IdeaBlade
IdeaBlade


Joined: 25-Aug-2010
Posts: 715
Post Options Post Options   Quote DenisK Quote  Post ReplyReply Direct Link To This Post Topic: Increase timeout of InvokeServerMethod
    Posted: 23-Apr-2012 at 11:55am
Unfortunately, the ability to set the binding's SendTimeout on a per request basis is not available.

I'm assuming the values on EntityQuery that you were referring to is the CommandTimeout. You can't use this timeout for RPC as this is a different timeout for a different purpose.

There are different timeouts in the .NET world.

1. Database timeout - Can be set by using EntityQuery.CommandTimeout

2. Transaction timeout - Can be set by using the TransactionSettings which in turn passed into the QueryStrategy

3. WCF communication timeouts - These are the sendTimeout, receiveTimeout, etc settings in the .config file.

4. and finally IIS timeouts

Here's a section on our DRC that may help you better understand the different timeouts. http://drc.ideablade.com/xwiki/bin/view/Documentation/understand-timeouts
Back to Top
jmpinchot View Drop Down
Newbie
Newbie
Avatar

Joined: 07-May-2010
Location: Florida
Posts: 22
Post Options Post Options   Quote jmpinchot Quote  Post ReplyReply Direct Link To This Post Posted: 20-Apr-2012 at 12:53pm
That's what I did initially, and yes the override gets called. I guess I could by default set the TimeSpan to something larger than a minute but that would affect every call. But really what I'm looking for is the ability to set this on a per request basis. I know I can overwrite the values on an EntityQuery however, since this is an InvokeServerMethod call, I'm unsure how to proceed.
Back to Top
DenisK View Drop Down
IdeaBlade
IdeaBlade


Joined: 25-Aug-2010
Posts: 715
Post Options Post Options   Quote DenisK Quote  Post ReplyReply Direct Link To This Post Posted: 19-Apr-2012 at 5:20pm
Hi jmpinchot,

Here's a sample solution showing you how to set the binding's SendTimeout in a custom ServiceProxyEvents and what happens if the server method call from the client is within or exceeds that timeout.

Hope it helps.

Back to Top
jmpinchot View Drop Down
Newbie
Newbie
Avatar

Joined: 07-May-2010
Location: Florida
Posts: 22
Post Options Post Options   Quote jmpinchot Quote  Post ReplyReply Direct Link To This Post Posted: 19-Apr-2012 at 7:45am
How do you increase the timeout of a synchronous InvokeServerMethod call?

I've tried creating my own custom ServerProxyEvents class, but it does not seem to be called when calling a remote server method.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down