IEventInterceptionAspect Interface
Runtime semantics of an aspect that, when applied on an event, intercepts invocations of its semantics Add (OnAddHandler(EventInterceptionArgs)), Remove (OnRemoveHandler(EventInterceptionArgs)) and Invoke (OnInvokeHandler(EventInterceptionArgs)) semantics.

Namespace: PostSharp.Aspects
Assembly: PostSharp (in PostSharp.dll) Version: 4.3.31.0 (4.3.31.0)
Syntax
C#
public interface IEventInterceptionAspect : IEventLevelAspect, 
	IAspect

The IEventInterceptionAspect type exposes the following members.

Methods
  NameDescription
Public methodOnAddHandler
Method invoked instead of the Add semantic of the event to which the current aspect is applied, i.e. when a new delegate is added to this event.
Public methodOnInvokeHandler
Method invoked when the event to which the current aspect is applied is fired, for each delegate of this event, and instead of invoking this delegate.
Public methodOnRemoveHandler
Method invoked instead of the Remove semantic of the event to which the current aspect is applied, i.e. when a delegate is removed from this event.
Public methodRuntimeInitialize
Initializes the current aspect.
(Inherited from IEventLevelAspect.)
Top
Remarks

For details, see EventInterceptionAspect

See Also