Exception, Caching, Logging using Enterprise Library 5.0
Exception Handling application block with logging application block
Above application blocks from Enterprise library can be utilised in BL, DAL and Servie layer, the reason is 'Exception application is used to implement consistent exception handling throughout your application using exception policies, those exceptions
can be logged into windows logs, database, flat file or email. As exceptions may occur with in BL, DAL and Service layers you may consider utilisng exception application block with logging application block for consistent exception handling and logging.
Member
21 Points
38 Posts
How to implement Enterprise Library 5.0 with N-tier architecture.
Feb 06, 2011 08:23 AM|gopalchettri|LINK
Hi there,
thanks for your valuable time for reading my problem.
I have n-tier architecture: a. Presentation Layer
b. Business Layer: (i) BusinessLogic (ii) BusinessEntities
c. DataLayer
d. ServiceLayer (WCF)
I want to implement Exception, Caching, Logging using Enterprise Library 5.0.
Please guide me how to proceed.I will be highly obliged if i can get the demo architecture or some help at your convenience.!!!
Logging caching Exception handling Enterprise Libraries 5.0 N-tier architecture
GopalChettri
(MCP)
Star
13042 Points
3174 Posts
Wrap application blocks with in a class to call throughout application
Feb 06, 2011 06:49 PM|sukumarraju|LINK
Exception Handling application block with logging application block
Above application blocks from Enterprise library can be utilised in BL, DAL and Servie layer, the reason is 'Exception application is used to implement consistent exception handling throughout your application using exception policies, those exceptions can be logged into windows logs, database, flat file or email. As exceptions may occur with in BL, DAL and Service layers you may consider utilisng exception application block with logging application block for consistent exception handling and logging.
In order to implement refer my blog post at
http://weblogs.asp.net/sukumarraju/archive/2009/10/04/microsoft-enterprise-library-4-1-exception-handling-block.aspx
Caching app block
As Caching application block can be used to cache frequently used data you may consider utilising this application block with data access layer.
Conclusion: Consider wrapping these application blocks with in a class, then call methods throughout your application layers as required.
David Hayden has whole set of resources http://www.pnpguidance.net/category/EnterpriseLibrary.aspx
Application Architecture Guide 2.0
My Blog
Twitter