Skip to main content

Home/ Coders/ Group items tagged aosd

Rss Feed Group items tagged

Joel Bennett

Announcing the Policy Injection Application Block - 0 views

  •  
    AOSD tools from Microsoft? 

    QUOTE: "the Policy Injection Application Block will simplify the separation of business logic from cross cutting concerns, by letting you define policies and the objects/methods they apply to in a declarative way."  -- if that's not Aspect Oriented, then I must have wasted my time in school ;-)
Joel Bennett

Policy Injection Application Block Validation and Logging Examples - 0 views

  •  
    David Hayden writes a couple of tutorials and gives some explanation of how the Policy Injection Application Block in Enterprise Library 3.0 really is Aspect Oriented Programming ... and there's a good screenshot there of the various "matching rules" ...

    It's kind of a shame that Microsoft couldn't bring themselves to use AOP terminology to describe this: weaving instead of "injection" ... etc.  It would really have made it easier to follow for the new users and would have lent some validation to AOP research and development

Joel Bennett

Policy Injection App Block - Behind the Scenes - 0 views

  • We use an interception mechanism to get in the way of calls going to that member, collect a list of policies that apply using a matching rules mechanism, run the chain of handlers specified by those policies in a chain of responsibility and at the other end dispatch the call to the target. Once the target is done - successfully or with exceptions - the stack unwinds, returning through each handler and finally back to the caller.
    • Joel Bennett
       
      So we can only advise "before"
  •  
    Very good read (particularly their evaluation of weaving methods).

    Although as a result their "Policy Injection" application block isn't as powerful as most of the straight-up AOP toolkits out there, it does have a *huge* upside: not only is the code produced by this supportable by Microsoft Product Support, it's now officially part of the Patterns and Practices recommendations!

    The down side is that the only injectable objects are ones created through a "Factory" method (you can't just use the *new* constructor) this brings some performance hits ... but then, you get the ability to separate concerns and apply policies and even business rules after the fact!
Joel Bennett

PostSharp brings AOP to .NET - 0 views

  •  
    PostSharp Laos is a post-compiler, MSIL injecting, high level aspect oriented programming weaver.  It looks amazing, and has been integrated with the .Net Enterprise Library 3.0 via the Enterprise Library Contribution project.
  •  
    With PostSharp, you can encapsulate aspects as custom attributes.
Joel Bennett

PostSharp for Enterprise Library - Enterprise Library Contrib - 0 views

  •  
    This addon to the enterprise library allows you to combine PostSharp's compile-time weaving with the Policy Injection application block (PIAB) to remove some of the limitations of the PIAB with regard to performance and remoting proxies...
1 - 5 of 5
Showing 20 items per page