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
Microsoft MVP, MCTS, PostSharp MVP,
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();
}
}
}