Question

If I set IsOneWay=true in a method, does exceptions thrown inside it affect the channel or the client?

Was it helpful?

Solution

No exception will make it to the client, but it will fault any unreliable channel. From MSDN:

one-way operations can't return values, and any exception thrown on the service side will not make its way to the client.

Any in case you want some more details check out this blog on codeidle it will walk you through one way operations, including what happens when an exception is thrown.

As scary as this sounds it is dependent on the binding, I am trying to find the appropriate resource now that explains it: WCF And One Way Behavioral Inconsistency

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top