Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9177605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:21:51+00:00 2026-06-17T17:21:51+00:00

I can implement both AOP (using Postsharp) and the EntLib (v5.0) for cross cutting

  • 0

I can implement both AOP (using Postsharp) and the EntLib (v5.0) for cross cutting concerns as logging and exception handling/strategies.

I’m failing to see if one excludes the other or where they might complement each other. Can somebody please share some experience and/or thoughts on this?

Thanks!

My take on it regarding exceptions:

AOP can easily wrap your code and catch exceptions. Handling could then be delegated to the EntLib which provides strong handling (wrap, replace, swallow) configuration using policies.

The handling strategies (wrap, replace and swallow) could also be implemented in aspects. What would drive the decision? Or am I missing something here perhaps?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T17:21:52+00:00Added an answer on June 17, 2026 at 5:21 pm

    I have not used Enterprise Lib, so let me talk in terms of log4net and postsharp.

    Log4net has great logging stuff, and you can use AOP ( using postsharp
    ) to drive this logging in a declarative way. In this sense they are
    great compliments.

    Here is an example. I would expect the same to hold true for Enterprise Library based logging or exception handling.

    What I wouldn’t suggest you use is the two AOP type things together, so the policy injection in Enterprise Library looks like AOP to me, so I wouldn’t use it and postsharp.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can implement both variants - it's easy. But I'm interested: what approach is
I'm trying to implement RSA Encryption in both Java and PHP, but I can't
How can implement reordring in winforms datagridview by using the feature of drag and
Can i implement both the paging and zooming of imageview in a uiscrollview at
Is is possible to implement smooth scrolling using both a UIScrollView and placing a
i am using Apache james as a mailserver and i need to implement both
Is it necessary to implement a BST with both keys and values? I can
How can I implement both of these ObservableCollections in my xaml? I want to
It seems like both can be used to define functions that you can implement
Can someone please tell me how I can implement the following line of pseudo-code.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.