示例#1
0
            private RecursionCheckToken(Context ctx, RecursionCheckKey key)
            {
                Pending = (ctx._lazyRecursionPrevention ??= new Stack <RecursionCheckKey>());

                IsInRecursion = Pending.Contains(key);
                Pending.Push(key);
            }
示例#2
0
 private RecursionCheckToken(Context ctx, RecursionCheckKey key)
 {
     _isrecursion = (_list = ctx._recursionPrevention).Contains(key);
     _list.Push(key);
 }
示例#3
0
 private RecursionCheckToken(Context ctx, RecursionCheckKey key)
 {
     IsInRecursion = (Pending = ctx._recursionPrevention).Contains(key);
     Pending.Push(key);
 }