PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Threading Namespace / Immutable­Attribute Class / Immutable­Attribute Methods

ImmutableAttribute Methods

The ImmutableAttribute type exposes the following members.

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 AggregatableClientAttribute.)
Public methodCompileTimeValidate(Object)
Method invoked at build time to ensure that the aspect has been applied to the right target.
(Inherited from TypeLevelAspect.)
Public methodCompileTimeValidate(Type)
Method invoked at build time to ensure that the aspect has been applied to the right target.
(Inherited from ThreadAwareAttribute.)
Public methodCreateInstance
Creates a new instance of the aspect based on the current instance, serving as a prototype.
(Inherited from InstanceLevelAspect.)
Public methodFinalize
(Inherited from ThreadAwareAttribute.)
Public methodGetAspectConfiguration
Method invoked at build tome to get the imperative configuration of the current Aspect.
(Inherited from Aspect.)
Public methodOnCloned
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 methodOnInstanceConstructed
Executed when the target instance gets fully initialized, i.e. just after all constructors have completed.
(Overrides AggregatableClientAttribute.OnInstanceConstructed().)
Public methodOnSerializing
Requires read access level to the current object before serialization can proceed. This method will be introduced into the target class.
(Inherited from ThreadAwareAttribute.)
Public methodRuntimeInitializeInstance
Initializes the aspect instance. This method is invoked when all system elements of the aspect (like member imports) have completed.
(Inherited from ReadOnlyThreadAwareAttribute.)
Extension Methods
Public Extension MethodAcquireAccess(ObjectAccessLevel)Overloaded.
Acquires access to given object and returns the ConcurrentAccessToken.
(Defined by ThreadAwareExtensions.)
Public Extension MethodAcquireAccess(ObjectAccessLevel, ConcurrentAccessToken)Overloaded.
Acquires access for a given object and gets the ConcurrentAccessToken as a reference parameter.
(Defined by ThreadAwareExtensions.)
Public Extension MethodAcquireAccessAsync
Asynchronously acquires access for a given object.
(Defined by ThreadAwareExtensions.)
See Also