سؤال

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

هل كانت مفيدة؟

المحلول

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

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top