Open sandboxFocus

Class EventInterceptionAspect

In Metalama, use OverrideEventAspect. Overriding aspect invocation is not yet implemented in Metalama. There is currently no workaround.

Inheritance
EventInterceptionAspect
Namespace: PostSharp.Aspects
Assembly: Metalama.Migration.dll
Syntax
[MulticastAttributeUsage(MulticastTargets.Event, AllowMultiple = true, PersistMetaData = false, TargetMemberAttributes = MulticastAttributes.NonAbstract)]
[AttributeUsage(AttributeTargets.Assembly|AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Event|AttributeTargets.Interface, AllowMultiple = true)]
[Obsolete("In Metalama, use 'OverrideEventAspect'. Overriding aspect invocation is not yet implemented in Metalama. There is currently no workaround.", false)]
public abstract class EventInterceptionAspect : EventLevelAspect, IEventLevelAspectBuildSemantics, IAspectBuildSemantics, IValidableAnnotation, IEventInterceptionAspect, IEventLevelAspect, IAspect

Constructors

Name Description
EventInterceptionAspect()

Methods

Name Description
CreateAspectConfiguration()

Not supported in Metalama.

OnAddHandler(EventInterceptionArgs)

Use OverrideAdd(dynamic).

OnInvokeHandler(EventInterceptionArgs)

Overriding aspect invocation is not yet implemented in Metalama. There is currently no workaround.

OnRemoveHandler(EventInterceptionArgs)

Use OverrideRemove(dynamic).

Extension Methods