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");
 }
Esempio n. 2
0
 public void Destroy()
 {
     _objectProcessor.RemoveAllHandlers();
     _configs.Clear();
     if (_context != null)
     {
         _context.INITIALIZE -= Initialize;
     }
 }