scarpacci
scarpacci

Reputation: 9194

When an certain error is raised I want to close my WCF Service host

We have a scenario where when a certain error occurs we want to shut down the WCF service host. The problem I am having is that when the error occurs on one of the intances how can I get it back to the calling program where the service host is so that I can close it. I can see the error being thrown when I debug, but it doesn't bubble up to where the service host is called (service host is being opened) in the main program?

What am I missing here? Just don't understand what I need to do so that when that error occurs I can shutdown the WCF Service.

Any suggestions would be greatly appreciated.

--S

Upvotes: 0

Views: 73

Answers (1)

Milan Raval
Milan Raval

Reputation: 1890

The article WCF Error Handling and Fault Conversion on Code Project might help you link

Upvotes: 1

Related Questions