PostSharp 4.3 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Threading Namespace / Thread­Aware­Attribute Class / Thread­Aware­Attribute Methods
ThreadAwareAttribute Methods

The ThreadAwareAttribute type exposes the following members.

Methods
  Name Description
Public method __GetThreadAwareImpl
Protected method Advise
Injects the advice into the child object.
(Overrides AggregatableClientAttribute.Advise(Object).)
Public method CompileTimeInitialize
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 AggregatableClientAttribute.)
Public method CompileTimeValidate(Object)
Method invoked at build time to ensure that the aspect has been applied to the right target.
(Inherited from TypeLevelAspect.)
Public method CompileTimeValidate(Type)
Method invoked at build time to ensure that the aspect has been applied to the right target.
(Overrides TypeLevelAspect.CompileTimeValidate(Type).)
Protected method CreateAspectConfiguration
Method invoked at build time to create a concrete AspectConfiguration instance specifically for the current Aspect type.
(Inherited from InstanceLevelAspect.)
Public method CreateInstance
Creates a new instance of the aspect based on the current instance, serving as a prototype.
(Inherited from InstanceLevelAspect.)
Public method GetAspectConfiguration
Method invoked at build tome to get the imperative configuration of the current Aspect.
(Inherited from Aspect.)
Protected method IsEligibleChild
Determines if an object is eligible to be a child of the target instance of the current aspect.
(Overrides AggregatableClientAttribute.IsEligibleChild(Object, ChildInfo).)
Public method OnCloned
Method called after the an object enhanced by the current aspect has been cloned using MemberwiseClone(). The this parameter refers to the new aspect instance in the cloned object.
(Inherited from InstanceLevelAspect.)
Public method OnFieldGet<T>
Public method OnFieldSet<T>
Public method OnInstanceConstructed
Executed when the target instance gets fully initialized, i.e. just after all constructors have completed.
(Inherited from AggregatableClientAttribute.)
Public method OnSerializing
Requires read access level to the current object before serialization can proceed. This method will be introduced into the target class.
Public method RuntimeInitialize (Overrides TypeLevelAspect.RuntimeInitialize(Type).)
Public method RuntimeInitializeInstance (Overrides InstanceLevelAspect.RuntimeInitializeInstance().)
Protected method SetAspectConfiguration(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 TypeLevelAspect.)
Protected method SetAspectConfiguration(AspectConfiguration, Type)
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 TypeLevelAspect.)
Extension Methods
  Name Description
Public Extension Method AcquireAccess(ObjectAccessLevel) Overloaded.
Acquires access to given object and returns the ConcurrentAccessToken.
(Defined by ThreadAwareExtensions.)
Public Extension Method AcquireAccess(ObjectAccessLevel, ConcurrentAccessToken) Overloaded.
Acquires access for a given object and gets the ConcurrentAccessToken as a reference parameter.
(Defined by ThreadAwareExtensions.)
Public Extension Method AcquireAccessAsync
Asynchronously acquires access for a given object.
(Defined by ThreadAwareExtensions.)
Public Extension Method QueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also