By tag: PostSharp
0
kicks
Getting Started with AOP using Postsharp
Taking a look at how to implemented AOP (Aspect Orientated Programming) with PostSharp.
We will be using the Postsharp library in this episode and we will take a look at how to create our first Aspect as well as how to use the metadata with the aspect to provide real business value in your applic...
0
kicks
Working with Advanced Aspects with Postsharp
Taking a look at how to use the AOP (Aspect Orientated Programming) framework Postsharp.
In this episode we will focus on how to use the OnMethodBoundry, MethodInterceptions, LocationInterception and EventInterception Aspects. We will look at how each of these can be used and how they can be used...
0
kicks
PostSharp Principals
Learn how to use the features of PostSharp to get the most out of Aspect Oriented Programming.
0
kicks
Aspects and on-hover descriptions
Always wanted to add a description telling you exactly what an applied PostSharp aspect does, when hovering over the marked field/property/method/class/...?
PostSharp does not have such a feature, but I found a way! Look inside for the result.
0
kicks
Async Aspect
Hate making threads manually to call methods in an async (non blocking) way, while you know that the method should always run on a seperate thread?
Then I advise you to try out this PostSharp aspect : Async
Attach the [Async] aspect to any method, and from that point on every call to that meth...
0
kicks
Attribute Based Caching 1.2 Released
Attribute Based Caching 1.2 has been Released. It’s still the .net only caching library that has declarative cache invalidation.
Project Description
Cache expensive methods calls with a declarative attribute. No custom code required. Configure caching method using unity. Options include In-proc...
0
kicks
Introducing PostSharp 2.0: #3 - Coping With Many Aspects
Gael Fraiteur explains how PostSharp 2.0 will cope with aspects when many of them are applied to the same code element: ordering, conflicts, commutativity, and Lie algebra :).
0
kicks
My baby steps to PostSharp 1.0
So… you downloaded PostSharp 1.0 and you installed it and are wondering… “What’s next?”.
Well my friends, let me walk you through the first steps of PostSharp. What could we do that would be simple enough? Hummm… what about writing to a debug window? That sounds simple enough! Let’s start.
0
kicks
PostSharp – The best way to do AOP in .NET
Who knows about Aspect-Oriented Programming (AOP)? Common! Don’t be shy! Ok, now lower your hands. My prediction is that a lot of you didn’t raise their hands. So let’s resume what AOP is:
Aspect-oriented programming is a programming paradigm that increases modularity by enabling improved separat...
0
kicks
Lazy Loading with PostSharp
Recently I wanted to use PostSharp for some simplistic lazy loading, but ended up hitting a couple of problems along the way. It all started very well – I defined an OnFieldAccessAttribute, removed the field in GetOptions() and overrided OnGetValue() to lazily create the type. My creation code was s...
0
kicks
Aspect Oriented Programming with PostSharp
This post illustrates how Aspect Oriented Programming can help you write less and more readable code. Using PostSharp, Dan illustrates how you can add constraints to your method arguments.
0
kicks
Announcing PostSharp 1.0 RC 2
This is to announce the second RC of PostSharp, a tool that can reduce the number of lines of code and improve its logical decoupling. Therefore its helps you delivering higher stability, cleaner design, and cheaper source code maintenance.
0
kicks
PostSharp - A Post-Compiler for .NET
PostSharp is a platform that allows you to transform or analyze your .NET assemblies after compilation. It reads binary assemblies into memory, execute a suite of plug-ins and write back the modified code. Geat tool for Aspect-Oriented Programming (AOP).
0
kicks
Have Fun Again With Custom Attributes (1)
If you think you know everything there is to know about custom attributes, read this article. I will show how PostSharp will let you to take your custom attributes to the next level. Learn how to encapsulate logging, performance, instrumentation, or field validation into custom attributes. And turn ...