PostSharp6.4/API Reference/Post­Sharp.​Aspects Namespace/Event­Interception­Aspect Class/Event­Interception­Aspect Methods

EventInterceptionAspect Methods

The EventInterceptionAspect type exposes the following members.

Methods
  NameDescription
Public methodCompileTimeInitialize
Method invoked at build time to initialize the instance fields of the current aspect. This method is invoked before any other build-time method.
(Inherited from EventLevelAspect.)
Public methodCompileTimeValidate(Object)
Method invoked at build time to ensure that the aspect has been applied to the right target.
(Inherited from EventLevelAspect.)
Public methodCompileTimeValidate(EventInfo)
Method invoked at build time to ensure that the aspect has been applied to the right target.
(Inherited from EventLevelAspect.)
Protected methodCreateAspectConfiguration
Method invoked at build time to create a concrete AspectConfiguration instance specifically for the current Aspect type.
(Overrides Aspect.CreateAspectConfiguration().)
Public methodGetAspectConfiguration
Method invoked at build tome to get the imperative configuration of the current Aspect.
(Inherited from Aspect.)
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 EventLevelAspect.)
Protected methodSetAspectConfiguration(AspectConfiguration, Object)
Method invoked at build time to set up an AspectConfiguration object according to the current Aspect instance and a specified target element of the current aspect.
(Inherited from EventLevelAspect.)
Protected methodSetAspectConfiguration(AspectConfiguration, EventInfo)
Method invoked at build time to set up an AspectConfiguration object according to the current Aspect instance and a specified target element of the current aspect.
(Inherited from EventLevelAspect.)
See Also