public void Handle (object sender, DeployEventArgs args) { log.Debug(String.Format("handler #{0} application {1}, args.EventType {2}", GetHashCode(), args.Application.FullPath, args.EventType)); eventGot = true; switch (args.EventType) { case DeployEventType.ApplicationAdded: applicationAdded = true; break; case DeployEventType.ApplicationRemoved: applicationRemoved = true; break; case DeployEventType.ApplicationUpdated: applicationUpdated = true; break; } sync.Release (); log.Debug("sync released"); }
private void dispatcher_DeployEvent (object sender, DeployEventArgs args) { deployEventDispatched = true; forwardDispatcherSync.Release(); }
private void dispatcher_DeployEvent(object sender, DeployEventArgs args) { log.Debug("releasing latch"); eventLatch.Release(); log.Debug("latch released"); }
private void controlledDispatcher_DeployEvent(object sender, DeployEventArgs args) { dispatched = true; log.Debug(String.Format("application = {0}", args.Application.FullPath)); log.Debug(String.Format("anotherAppFullPath = {0}", anotherAppFullPath)); controlledEventLatch.Release(); }
public void Raise (DeployEventArgs eventArgs) { if (DeployEvent != null) DeployEvent (this, eventArgs); }