private static void RemoveCurrentStack(SimpleEventBus simpleEventBus) { lock (_stacks) { _stacks.Remove(simpleEventBus); } }
private static Stack <string> GetCurrentStack(SimpleEventBus simpleEventBus) { lock (_stacks) { if (!_stacks.ContainsKey(simpleEventBus)) { _stacks[simpleEventBus] = new Stack <string>(); } return(_stacks[simpleEventBus]); } }