PostSharp6.1/API Reference/Post­Sharp.​Patterns.​Threading.​Models Namespace/Thread­Affine­Threading­Model Class

ThreadAffineThreadingModel Class

The ThreadAffineThreadingModel class describes a threading model where only the thread that created the object has the right to access this object. To use the ThreadAffineThreadingModel, apply the ThreadAffineAttribute custom attribute to a class.
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Threading.ThreadingModel
    PostSharp.Patterns.Threading.Models.ThreadUnsafeThreadingModel
      PostSharp.Patterns.Threading.Models.ThreadAffineThreadingModel

Namespace:  PostSharp.Patterns.Threading.Models
Assembly:  PostSharp.Patterns.Threading (in PostSharp.Patterns.Threading.dll) Version: 6.1.23.0 (6.1.23.0)
Syntax
C#
public sealed class ThreadAffineThreadingModel : ThreadUnsafeThreadingModel

The ThreadAffineThreadingModel type exposes the following members.

Properties
  NameDescription
Public propertyIsBlocking
Determines whether the current ThreadingModel has blocking semantics, i.e. if the threading model may cause the executing thread to be blocked, for instance when waiting for a lock.
(Inherited from ThreadUnsafeThreadingModel.)
Public propertyIsThreadSafe
Determines whether the threading model is possibly thread safe.
(Inherited from ThreadUnsafeThreadingModel.)
Methods
  NameDescription
Public methodToString
Returns a string that represents the current object.
(Inherited from ThreadingModel.)
See Also