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: 2023.0.3.0 (2023.0.3.0)
C#
public interface IFreezable : IThreadAware
The IFreezable type exposes the following members.
Name | Description | |
---|---|---|
ConcurrencyController |
Gets the concurrency controller for the current object.
(Inherited from IThreadAware.) |
Name | Description | |
---|---|---|
Freeze |
Prevents the current object to be modified.
| |
OnParentControllerChanged |
Notifies the object that the effective controller of it's parent has changed.
(Inherited from IThreadAware.) |
Name | Description | |
---|---|---|
AcquireAccess(ObjectAccessLevel) | Overloaded.
Acquires access to given object and returns the ConcurrentAccessToken.
(Defined by ThreadAwareExtensions.) | |
AcquireAccess(ObjectAccessLevel, ConcurrentAccessToken) | Overloaded.
Acquires access for a given object and gets the ConcurrentAccessToken as a reference parameter.
(Defined by ThreadAwareExtensions.) | |
AcquireAccessAsync |
Asynchronously acquires access for a given object.
(Defined by ThreadAwareExtensions.) |
To determine whether the object has been frozen, use the IsReadOnly property of the ConcurrencyController of this object.