PostSharp5.0//API Reference/Post­Sharp.​Patterns.​Threading.​Models Namespace/Thread­Unsafe­Threading­Model Class

ThreadUnsafeThreadingModel Class

The ThreadUnsafeThreadingModel class describes a threading model an object cannot be accessed concurrently by several threads. In case of concurrent access, a ConcurrentAccessException exception will be thrown. The thread-unsafe threading model is not strictly a model, because it cannot be deterministically verified. To use the ThreadAffineThreadingModel, apply the ThreadUnsafeAttribute 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: 5.0.55.0 (5.0.55.0)
Syntax
C#
public class ThreadUnsafeThreadingModel : ThreadingModel

The ThreadUnsafeThreadingModel type exposes the following members.

Properties
  NameDescription
Public propertyIsThreadSafe
Determines whether the threading model is possibly thread safe.
(Overrides ThreadingModel.IsThreadSafe.)
Methods
  NameDescription
Public methodToString
Returns a string that represents the current object.
(Inherited from ThreadingModel.)
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also