Ejemplo n.º 1
0
        public TrackingScope NewScope()
        {
            var current = GetCurrentRegisterScope();
            var scope   = new TrackingScope(current, _ => trackingScopes.Pop());

            trackingScopes.Push(scope);

            return(scope);
        }
Ejemplo n.º 2
0
 public TrackingScope(TrackingScope parent, Action <TrackingScope> onDispose)
 {
     Parent         = parent;
     this.onDispose = onDispose;
 }