WCF service oneway operation timeout

951 Views Asked by At

Does the OneWay operations in WCF service execute as long as the operation is complete or is there any operation timeout for oneway wcf service.

If there is as such any operation timeout configuration then please tell me I want to increase it so that one way wcf service should take as much time it want to execute operation.

2

There are 2 best solutions below

3
On

Try configure the bindings to the WCF service found in app.config.

system.servicemodel > bindings > .. > opentimeout / sendtimeout

More information on configuration settings here

0
On

You have to cast the channel as IContextChannel. This interface has an OperationTimeout property you can set. It's location is different from the usual Open, Close and Connect Timeouts that are located on the proxy.