public void removeAllHandlers() { objectProcessor.AddObjectHandler(new InstanceOfMatcher(typeof(String)), (Action <object>) delegate(object obj){ Assert.Fail("Handler should not fire after call to removeAllHandlers"); }); objectProcessor.RemoveAllHandlers(); objectProcessor.ProcessObject("string"); }
public void Destroy() { _objectProcessor.RemoveAllHandlers(); _configs.Clear(); if (_context != null) { _context.INITIALIZE -= Initialize; } }