コード例 #1
0
 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");
 }
コード例 #2
0
 public void Destroy()
 {
     _objectProcessor.RemoveAllHandlers();
     _configs.Clear();
     if (_context != null)
     {
         _context.INITIALIZE -= Initialize;
     }
 }