Dustin Davis
Dustin Davis

Reputation: 14585

http handlers and modules for WCF

I realize that handlers and modules are part of the asp.net lifecycle so my question is, is there an equivalent to handlers or modules that can be applied to WCF or ASMX?

The goal is to quickly apply an unhandled error logging module to each of our asp.net sites as well as services without rebuilding them. I was able to build a module for the asp.net sites and easily add it in with a single config change.

Upvotes: 0

Views: 262

Answers (1)

Darin Dimitrov
Darin Dimitrov

Reputation: 1038770

ASMX being a deprecated technology I prefer not talk about it, let's leave it die peacefully and as quickly as possible.

As far as WCF is concerned the best way to handle errors is by implementing a custom IErrorHandler and wrap any unmanaged exceptions that might have propagated from operation contracts into fault contracts.

Upvotes: 2

Related Questions