protected TestingHandler NewHandler(ISync sync)
 {
     try
     {
         log.Debug("disconnecting testing handler");
         location.DeployEvent -= new DeployEventHandler(dontUseHandler.Handle);
     }
     catch
     {}
     dontUseHandler = new TestingHandler(sync);
     log.Debug("connecting testing handler");
     location.DeployEvent += new DeployEventHandler(dontUseHandler.Handle);
     return(dontUseHandler);
 }
 protected void InitHandler(ISync sync)
 {
     location = new FileSystemDeployLocation(dispatcher, deployPath);
     handler  = NewHandler(sync);
 }
 protected void InitHandler (ISync sync)
 {
     location = new FileSystemDeployLocation (dispatcher, deployPath);
     handler = NewHandler (sync);
 }
 protected TestingHandler NewHandler (ISync sync)
 {
     try
     {
         log.Debug("disconnecting testing handler");
         location.DeployEvent -= new DeployEventHandler (dontUseHandler.Handle);
     }
     catch
     {}
     dontUseHandler = new TestingHandler (sync);
     log.Debug("connecting testing handler");
     location.DeployEvent += new DeployEventHandler (dontUseHandler.Handle);
     return dontUseHandler;
 }
Exemple #5
0
 private void TheApplicationIsRegistered()
 {
     _handler   = new TestingHandler();
     _container = Registrations.Generate(_handler);
 }