An advice is a class that is able to produce some MSIL code.
Namespace:
PostSharp.CodeWeaverAssembly: PostSharp.Core (in PostSharp.Core.dll)
Syntax
| Visual Basic (Declaration) |
|---|
Public Interface IAdvice |
| C# |
|---|
public interface IAdvice |
| Visual C++ |
|---|
public interface class IAdvice |
Remarks
The RequiresWeave(WeavingContext) method determine whether the Weave(WeavingContext, InstructionBlock) method should be called at a given join point.