PostSharp//API Reference/Post­Sharp.​Patterns.​Threading/Read­Only­Thread­Aware­Attribute
Open sandboxFocus

Class ReadOnlyThreadAwareAttribute

Base class for aspects FreezableAttribute and ImmutableAttribute.

Namespace: PostSharp.Patterns.Threading
Assembly: PostSharp.Patterns.Threading.dll
Syntax
[Serializer]
public abstract class ReadOnlyThreadAwareAttribute : ThreadAwareAttribute, ITypeLevelAspect, ITypeLevelAspectBuildSemantics, IAspectBuildSemantics, IValidableAnnotation, ICloneAwareAspect, IInstanceScopedAspect, IAspectProvider, IService, IAdviceProvider, IAspect, IThreadAware, IQueryInterface, IConcurrencyController

Constructors

Name Description
ReadOnlyThreadAwareAttribute() PostSharp.Patterns.Threading.ReadOnlyThreadAwareAttribute
ReadOnlyThreadAwareAttribute(PortableFormatterConstructorContext)

Methods

Name Description
Advise(Object)

Injects the advice into the child object.

RuntimeInitializeInstance()

Initializes the aspect instance. This method is invoked when all system elements of the aspect (like member imports) have completed.

Explicit Interface Implementations

Name Description
IConcurrencyController.AcquireAccess(ObjectAccessLevel, ref ConcurrentAccessToken)
IConcurrencyController.AcquireAccessAsync(ObjectAccessLevel)
IConcurrencyController.CheckAccess(ObjectAccessLevel)
IConcurrencyController.IsReadOnly
IConcurrencyController.IsSharable
IConcurrencyController.RequireAccess(ObjectAccessLevel)
IConcurrencyController.ThreadingModel