public void Dispatch (IDeployLocation sender, DeployEventType eventType, IApplication application) { lock (this) { log.Debug(String.Format("collecting event {0} (collected so far: {1})", eventType, events.Count)); events.Add(new DeployEventArgs(application, DeployEventType.ApplicationUpdated)); wait.Release(); } }
public void Dispatch(IDeployLocation sender, DeployEventType eventType, IApplication application) { lock (this) { log.Debug(String.Format("collecting event {0} (collected so far: {1})", eventType, events.Count)); events.Add(new DeployEventArgs(application, DeployEventType.ApplicationUpdated)); wait.Release(); } }
public void Dispatch(IDeployLocation sender, DeployEventType eventType, IApplication application) { if (DeployEvent != null) { DeployEvent(null, new DeployEventArgs(application, eventType)); } started.Release(); canContinue.Acquire(); throw new Exception("this dispatcher is for testing and always raises exception"); }
public void Dispatch (IDeployLocation sender, DeployEventType eventType, IApplication application) { if (DeployEvent != null) DeployEvent(null, new DeployEventArgs(application, eventType)); started.Release(); canContinue.Acquire(); throw new Exception ("this dispatcher is for testing and always raises exception"); }