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.
Assembly: PostSharp (in PostSharp.dll) Version: 22.214.171.124 (126.96.36.199)
void OnAddHandler( EventInterceptionArgs args )
- Type: PostSharp.Aspects.EventInterceptionArgs
|Because of the way how the C# compiler implements automatic events (i.e. events where you don't implement the Add and Remove semantics manually), the Invoke Event Handler semantic ( OnInvokeHandler(EventInterceptionArgs) or equivalent) shall not be invoked for delegates that have been added from inside the class that declares this event.|