Beispiel #1
0
        private ExecutionContext(ExecutionContext parent)
        {
            this.parent = parent;

            if (parent == null)
            {
                blockBroker.FailoverBroker = dynamicBlockBroker;
            }
        }
Beispiel #2
0
        public static void ExitLevel()
        {
            if (current == null) throw new InvalidOperationException();

            current = current.parent;
        }
Beispiel #3
0
        public static void Reset()
        {
            if (current != null)
            {
                foreach (IBlockWeb bw in current.Export())
                {
                    bw.Dispose();
                }
            }

            current = null;
        }
Beispiel #4
0
 public static void EnterLevel()
 {
     current = new ExecutionContext(current);
 }