PostSharpAPI ReferencePost­Sharp.​Patterns.​ThreadingConcurrent­Access­TokenCheck­Context
Open sandboxFocus

ConcurrentAccessToken.CheckContext Method

CheckContext(Boolean)

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

Declaration
public bool CheckContext(bool canBeParentContext = false)
Parameters
Type Name Description
Boolean canBeParentContext

true if the current ConcurrentAccessToken can be the token of a parent token, false if it must be the token of the current context.

Returns
Type Description
Boolean

true if the current ConcurrentAccessToken is valid for the current context, otherwise false.