Interface that, when implemented by an aspect class, allows aspect instances to provide other aspects to the weaver.
Namespace: PostSharp.Aspects
Assembly: PostSharp.dll
Syntax
public interface IAspectProvider : IAspect, IServiceRemarks
Use this interface when aspects cannot be added declaratively with custom attributes, for instance when the set of targets results from an analysis of the code using reflection, or from an external configuration file. The ProvideAspects(object) method runs at build time and returns AspectInstance objects that specify each provided aspect and its target.
Methods
| Name | Description |
|---|---|
| ProvideAspects(object) | Provides new aspects. |