PostSharp6.2/API Reference/Post­Sharp.​Patterns.​Threading Namespace/Concurrent­Access­Token Structure/Concurrent­Access­Token Methods/Concurrent­Access­Token.​Check­Context Method

ConcurrentAccessToken.CheckContext Method

Determines whether the current ConcurrentAccessToken is valid in the current context.

Namespace:  PostSharp.Patterns.Threading
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.2.11.0 (6.2.11.0)
Syntax
C#
public bool CheckContext(
	bool canBeParentContext = false
)

Parameters

canBeParentContext (Optional)
Type: System.Boolean
true if the current ConcurrentAccessToken can be the token of a parent token, false if it must be the token of the current context.

Return Value

Type: Boolean
true if the current ConcurrentAccessToken is valid for the current context, otherwise false.
See Also