예제 #1
0
 private static void RemoveCurrentStack(SimpleEventBus simpleEventBus)
 {
     lock (_stacks)
     {
         _stacks.Remove(simpleEventBus);
     }
 }
예제 #2
0
        private static Stack <string> GetCurrentStack(SimpleEventBus simpleEventBus)
        {
            lock (_stacks)
            {
                if (!_stacks.ContainsKey(simpleEventBus))
                {
                    _stacks[simpleEventBus] = new Stack <string>();
                }

                return(_stacks[simpleEventBus]);
            }
        }