Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Whats in the Exception Management Application Block?

0
Posted

Whats in the Exception Management Application Block?

0

The Exception Management Application Block can be downloaded and installed from Microsoft’s Web site. I won’t list all of the code here because it is pretty involved, and you can explore this part yourself. Instead, we will take a cross-section of the application block to show you how to start using and extending it. The EMAB has three significant pieces. (Keep in mind I am editing a bit, but these are the important pieces.) Publishers implement the IExceptionPublisher interface defined by the Microsoft.ApplicationBlocks.ExceptionManagement.dll. Publishers are the pieces of code that actually write to a repository. The second piece is the ExceptionManager class. Requests to log exceptions are routed through the static method ExceptionManager.Publish(exception). The third piece is the App.config file. The .config file is used to tell the ErrorManager which publisher to use after deployment. This means that you can implement new IExceptionPublishers, and deploy them after your applicatio

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123