PostSharp SDK 6.7 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Weaver Namespace / Aspect­Weaver­Plug­In Class / Aspect­Weaver­Plug­In Methods / Aspect­Weaver­Plug­In.​Bind­Advice­Weaver(TAttribute, TImpl) Method

AspectWeaverPlugIn.BindAdviceWeaver<TAttribute, TImpl> Method

Binds an advice custom attribute type (Advice) to an AdviceWeaver.

Namespace:  PostSharp.Sdk.AspectWeaver
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 6.7.10.0 (6.7.10.0)
Syntax
C#
protected void BindAdviceWeaver<TAttribute, TImpl>()
where TAttribute : Advice
where TImpl : new(), AdviceWeaver

Type Parameters

TAttribute
Advice custom attribute type (derived from Advice).
TImpl
The AspectWeaver able to process advices of type TAttribute.
See Also