How to get WCF ClientBase <T> in a failed state?

As I remember correctly, in the .NET Framework 3.x, the WCF ( ClientBase<T>) service client would receive an error state when the service returned an exception ( FaultException). This can lead to problems when the service client has not been correctly installed / closed. (See Lots of posts on this subject, for example: What is the best workaround for a problem with the WCF client block `use`? ).

This change has been changed! One way or another, when a service throws an exception, the service client repeats this exception, but the client no longer enters a failed state.

Two questions:

  • Under what conditions does the service client enter a failed state?
  • Since when (in which version or patch of the framework) has this behavior been changed?
+4
source share

Source: https://habr.com/ru/post/1679870/


All Articles