Class WeakEventAttribute
Aspect that, when applied to an event, prevents the target event from holding a strong reference to event handlers.
Therefore, the aspect prevents the event to prevent clients to be garbage collected.
Inheritance
WeakEventAttribute
Assembly: PostSharp.Patterns.Model.dll
Syntax
[LinesOfCodeAvoided(6)]
[Serializer]
public sealed class WeakEventAttribute : EventInterceptionAspect, IEventLevelAspectBuildSemantics, IAspectBuildSemantics, IValidableAnnotation, IEventInterceptionAspect, IEventLevelAspect, IInstanceScopedAspect, IAspect
Constructors
Methods
Explicit Interface Implementations