public void Context(string when, Action func) { var container = new Container(when, ContainerTypes.Context); Current.AddContainer(container); _contextStack.Push(container); func(); _contextStack.Pop(); }