Is it possible to set the "OperationTimeout" property?

Is it possible to set the "OperationTimeout" property?

Old forum URL: forums.lhotka.net/forums/t/10445.aspx


MichelRenaud posted on Thursday, June 16, 2011

We're using a netTcpBinding and we need to set the "OperationTimeout" property, and apparently this cannot be set through the config file.  It requires accessing the client channel through code.  Since CSLA handles this internally, is there any way to set this through the client code?  I've seen reports that setting the send and receive timeouts in the config file is equivalent, but apparently that's a common misconception (and based on our tests, that assumption appears to be true...)

Thanks,
Michel

RockfordLhotka replied on Thursday, June 16, 2011

You can subclass WcfProxy and override methods to create your own channel factory or proxy object to meet your needs.

This is covered in detail in the Using CSLA 4: Data Portal Configuration ebook.

MichelRenaud replied on Monday, June 20, 2011

Thanks - I had not read that far in the ebook yet. That seems to have worked, although WCF (WTF, really) is still timing out. :(

Copyright (c) Marimer LLC