Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Threading Namespace / IFreezable Interface

IFreezable Interface

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

Namespace:  PostSharp.Patterns.Threading
Assembly:  PostSharp.Patterns.Threading (in PostSharp.Patterns.Threading.dll) Version: 6.0.18.0 (6.0.18.0)
Syntax
C#
public interface IFreezable : IThreadAware

The IFreezable type exposes the following members.

Properties
  NameDescription
Public propertyConcurrencyController
Gets the concurrency controller for the current object.
(Inherited from IThreadAware.)
Methods
  NameDescription
Public methodFreeze
Prevents the current object to be modified.
Public methodOnParentControllerChanged
Notifies the object that the effective controller of it's parent has changed. The new parent controller or null.
(Inherited from IThreadAware.)
Extension Methods
  NameDescription
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.)
Remarks

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

See Also