PostSharpAPI ReferencePost­Sharp.​Patterns.​ThreadingRead­Only­Thread­Aware­Attribute
Open sandboxFocus

ReadOnlyThreadAwareAttribute Class

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, IThreadAwareImplementationProvider, IThreadAware, IQueryInterface, IConcurrencyController

Constructors

Name Description
ReadOnlyThreadAwareAttribute()
ReadOnlyThreadAwareAttribute(PortableFormatterConstructorContext)

Methods

Name Description
Advise(Object)

Injects the advice into the child object.

RuntimeInitializeInstance()

Explicit Interface Implementations

Name Description
IConcurrencyController.AcquireAccess(ObjectAccessLevel, ref ConcurrentAccessToken)

Acquires access on the entity for the current thread and waits synchronously if access cannot be immediately acquired.

IConcurrencyController.AcquireAccessAsync(ObjectAccessLevel)
IConcurrencyController.CheckAccess(ObjectAccessLevel)

Determines whether the current thread has a specified level of access to the entity.

IConcurrencyController.IsReadOnly

Determines whether the entity is currently read-only.

IConcurrencyController.IsSharable

Determines whether the entity can currently be accessed concurrently by several threads.

IConcurrencyController.RequireAccess(ObjectAccessLevel)

Determines whether the current thread has a specified level of access to the entity and throws an exception if not.

IConcurrencyController.ThreadingModel

Gets the ThreadingModel implemented by the current controller.