Does exceptions throw inside an One method makes the channel faulted?

102 views Asked by At

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

1

There are 1 answers

1
Nix On BEST ANSWER

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