title: Setting OperationTimeout on Wcf RoutingService
body: <p>I'm struggling with setting the OperationTimeout on the <a href="http://msdn.microsoft.com/en-us/library/ee517422.aspx" rel="nofollow">RoutingService</a></p>
  
  <p>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.</p>
  
  <p>I tried to set the OperationTimeout on the client proxy of the RoutingService without success.</p>
  
  <p>What I did, is to add an Endpoint Behavior and add in the ApplyClientBehavior method an custom IClientMessageInspector.</p>
  
  <p>In the custom ClientMessageInspector I set the OperationTimeout, like you see in this code snippet.</p>
  
  <pre><code>    public object BeforeSendRequest(ref Message request, IClientChannel channel)
      {
          var contextChannel = channel as IContextChannel;
          contextChannel.OperationTimeout = new TimeSpan(0, 10, 0);
  
          return request;
      }
  </code></pre>
  
  <p>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 ?</p>
  
  <p>Any suggestions?</p>