Should designers for WCF services use errors to handle errors?

I have a wcf service. The service itself (the class that ServiceContract inherits from ) has a constructor that sometimes throws exceptions. I want to present a message to the user if the service is down. Should I use errors, for example, for a service method?

+5
source share
1 answer

Typically, an error is to provide error information across service boundaries, and in most cases the error is sent in response to an invalid or invalid request message. Given this, I would say that the error here does not make sense.

, . , , . WCF, ​​ IsInitiating = true" [OperationContract]. , .

+2

All Articles