PostSharp 6.5 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Threading Namespace / Thread­Safety­Policy Class / Thread­Safety­Policy Methods

ThreadSafetyPolicy Methods

The ThreadSafetyPolicy type exposes the following members.

Public methodValidateCode
Validates the element of code to which the constraint is applied.
(Overrides ScalarConstraint.ValidateCode(Object).)
Public methodValidateConstraint
Validates the fact that the constraint has been applied on a valid element of code. When this method returns false, the constraint is silently ignored.
(Inherited from Constraint.)
See Also