Ejemplo n.º 1
0
            private RecursionCheckToken(Context ctx, RecursionCheckKey key)
            {
                Pending = (ctx._lazyRecursionPrevention ??= new Stack <RecursionCheckKey>());

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