PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Threading Namespace / Deadlock­Detection­Policy Class / Deadlock­Detection­Policy Methods / Deadlock­Detection­Policy.​Compile­Time­Validate Method / Deadlock­Detection­Policy.​Compile­Time­Validate Method (Assembly)

DeadlockDetectionPolicy.CompileTimeValidate Method (Assembly)

Method invoked at build time to ensure that the aspect has been applied to the right target.

Namespace:  PostSharp.Patterns.Threading
Assembly:  PostSharp.Patterns.Threading (in PostSharp.Patterns.Threading.dll) Version: 2023.0.3.0 (2023.0.3.0)
public override bool CompileTimeValidate(
	Assembly assembly


Type: System.Reflection.Assembly
Assembly on which the current aspect is applied.

Return Value

Type: Boolean
true if the aspect was applied to an acceptable target, otherwise false.
The implementation of this method is expected to emit an error message (see MessageSource) or an exception in case of error. Returning false without emitting an error message or exception causes the aspect to be silently ignored.
See Also