PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​ModelAggregatable­Client­Attribute
Open sandboxFocus

AggregatableClientAttribute Class

Base class for aspects that consume functionalities from the AggregatableAttribute aspect. This class provides functionalities to advise and unadvise children.

Namespace: PostSharp.Patterns.Model
Assembly: PostSharp.Patterns.Aggregation.dll
Syntax
[MulticastAttributeUsage]
[AspectTypeDependency]
[HasConstraint]
[Serializer]
public abstract class AggregatableClientAttribute : InstanceLevelAspect, ITypeLevelAspect, ITypeLevelAspectBuildSemantics, IAspectBuildSemantics, IValidableAnnotation, ICloneAwareAspect, IInstanceScopedAspect, IAspectProvider, IService, IAdviceProvider, IAspect

Constructors

Name Description
AggregatableClientAttribute() PostSharp.Patterns.Model.AggregatableClientAttribute
AggregatableClientAttribute(PortableFormatterConstructorContext)

Fields

Name Description
OnChildAttachedBaseMethod
OnDeserializationBaseMethod
VisitChildrenMethod

Properties

Name Description
AppliedToCurrentType

Determines if the current custom attribute instance has been applied to the type of the target instance. This value is false if the custom attribute has been applied to a base type.

InitializationStatus

Gets the current AggregatableClientAttribute.AspectInitializationStatus of the current aspect.

Methods

Name Description
Advise(Object)

Injects the advice into the child object.

CompileTimeInitialize(Type, AspectInfo)

Method invoked at build time to initialize the instance fields of the current aspect. This method is invoked before any other build-time method.

InitializeAspectInstance(AspectInitializationReason)
IsEligibleChild(Object, ChildInfo)

Determines if an object is eligible to be a child of the target instance of the current aspect.

OnAdviseChildFailed(Object)

Method invoked when a child is assigned to a parent and the advices of the parent cannot be added to the child. Implementations can choose to throw an exception (thread-aware attributes do this) or ignore the situation (DisposableAttribute does this).

OnAspectsInitialized(AspectInitializationReason)
OnChildAttached(Object, ChildInfo)
OnDeserialization(Object)
OnInstanceConstructed()

Executed when the target instance gets fully initialized, i.e. just after all constructors have completed.

ProvideAdvices(Object)
ProvideAspects(Type)

Explicit Interface Implementations

Name Description
IAspectProvider.ProvideAspects(Object)