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.4.11.0 (6.4.11.0)
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: Booleantrue if the current ConcurrentAccessToken is valid for the current context, otherwise false.