Developing Custom Aspects

This chapter describes how to build your own aspect. It includes the following topics:

Section

Description

Developing Simple Aspects

This topic describes how to create aspects that contain a single transformation (named simple aspects). It describes all kinds of simple aspects.

Understanding Aspect Lifetime and Scope

This topic explains the lifetime of aspects, which are instantiated at build time, serialized, then deserialized at runtime and executed.

Initializing Aspects

This topic discusses different techniques to initialize aspects.

Validating Aspect Usage

This topic shows how to validate that an aspect has been applied to a valid target declaration.

Developing Composite Aspects

This topic describes how to create aspects that are composed of several primitive transformations, using advices and pointcuts.

Coping with Several Aspects on the Same Target

This topic explains how to express aspect dependencies to prevent issues that would otherwise happen if several aspects are added to the same declaration.

Understanding Interception Aspects

This topic explains some details about the implementation of interception aspects.

Understanding Aspect Serialization

This topic explains aspect serialization and how to customize it.

Customizing Aspect Appearance in Visual Studio

This topic shows how aspect can influence how they appear in Visual Studio tooltips and code saving metrics.

Advanced

This topic discusses some advanced questions.