I'm struggling with setting the OperationTimeout on the RoutingService
The issue is that the service to which the message is forwarded needs more then 1 Minute to give a response. This causes an OperationTimeout Exception on the RoutingService.
I tried to set the OperationTimeout on the client proxy of the RoutingService without success.
What I did, is to add an Endpoint Behavior and add in the ApplyClientBehavior method an custom IClientMessageInspector.
In the custom ClientMessageInspector I set the OperationTimeout, like you see in this code snippet.
public object BeforeSendRequest(ref Message request, IClientChannel channel)
{
var contextChannel = channel as IContextChannel;
contextChannel.OperationTimeout = new TimeSpan(0, 10, 0);
return request;
}
For me it seems that I'm too late at this point and therefore the RoutingService generated proxy doesn't care about this setting, could this be ?
Any suggestions?