PostSharp Principals

PostSharp Principals is a 5 week-long blog series about the features and inner workings of PostSharp. It covers each feature with in-depth explanations and easy to understand examples.

PostSharp Principles: Day 1 – OnExceptionAspect

PostSharp Principles: Day 2 – Applying Aspects with Multicasting Part 1

PostSharp Principles: Day 3 – Applying Aspects with Multicasting Part 2

PostSharp Principles: Day 4 – OnMethodBoundaryAspect

PostSharp Principles: Day 5 – Visual Studio Add-ins

PostSharp Principles: Day 6 Your code after PostSharp

PostSharp Principles: Day 7 Interception Aspects – Part 1

PostSharp Principles: Day 8 Interception Aspects – Part 2

PostSharp Principles: Day 9 Aspect Lifetime & Scope Part 1

PostSharp Principles: Day 10 Aspect Lifetime & Scope Part 2

PostSharp Principals: Day 11 – EventInterceptionAspect

PostSharp Principals: Day 12 – Aspect Providers, Part 1

PostSharp Principles: Day 13 – Aspect Providers, Part 2

PostSharp Principals: Day 14 – Introducing Members and Interfaces, Part 1

PostSharp Principles: Day 15 – Introducing Members and Interfaces, Part 2

kick it on DotNetKicks.com

One comment on “PostSharp Principals

  1. Just found out how to IoC with Unity 2.1:
    public class IoCResolution : LocationInterceptionAspect
    {
    public override void OnGetValue(LocationInterceptionArgs args)
    {
    args.ProceedGetValue();
    if (args.Value == null)
    {
    Type t = args.Location.PropertyInfo.PropertyType;
    var instance = AppSession.UnityContainer.Resolve(t);
    args.Value = instance;
    args.ProceedSetValue();
    }
    }
    }

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s