PostSharpAPI ReferencePost­Sharp.​Patterns.​ThreadingIFreezable
Open sandboxFocus

IFreezable Interface

Interface implemented by the FreezableAttribute aspect. Defines a Freeze() method.

Namespace: PostSharp.Patterns.Threading
Assembly: PostSharp.Patterns.Threading.dll
Syntax
public interface IFreezable : IThreadAware
Remarks

To determine whether the object has been frozen, use the IsReadOnly property of the ConcurrencyController of this object.

Methods

Name Description
Freeze()

Prevents the current object to be modified.

Extension Methods

ThreadAwareExtensions.AcquireAccess(IThreadAware, ObjectAccessLevel)
ThreadAwareExtensions.AcquireAccess(IThreadAware, ObjectAccessLevel, ref ConcurrentAccessToken)
ThreadAwareExtensions.AcquireAccessAsync(IThreadAware, ObjectAccessLevel)