PostSharpAPI ReferencePost­Sharp.​Patterns.​ThreadingThread­Safety­Policy
Open sandboxFocus

ThreadSafetyPolicy Class

When applied to an assembly, this policy will check for possible concurrency issues.

Inheritance
ThreadSafetyPolicy
Namespace: PostSharp.Patterns.Threading
Assembly: PostSharp.Patterns.Threading.dll
Syntax
[MulticastAttributeUsage]
public sealed class ThreadSafetyPolicy : ScalarConstraint, IScalarConstraint, IConstraint
Remarks

There are following concurrency issues that are recognized by this policy:

Thread safety of a type is determined by simple immutability analysis, i.e. the type does contain only

Constructors

Name Description
ThreadSafetyPolicy()

Methods

Name Description
ValidateCode(Object)

Validates the element of code to which the constraint is applied.