If I set IsOneWay=true
in a method, does exceptions thrown inside it affect the channel or the client?
Asked
Active
Viewed 89 times
1 Answers
1
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

Nix
- 57,072
- 29
- 149
- 198
-
Are you sure `it will fault underlying channel` ? – Jader Dias Feb 25 '11 at 19:24