Example #1
0
 /// <summary>Initialize this job event disptacher</summary>
 /// <param name="listener">the <see cref="BaseDotnetJobListener"/> to which the events are dispatched</param>
 /// <param name="verbose">if <code>true</code>, then this instance will print a console message upon each event notification.
 /// This is intended as a debugging help.</param>
 public DotnetTopologyEventDispatcher(BaseDotnetTopologyListener listener, bool verbose)
 {
     this.listener = listener;
     this.verbose  = verbose;
 }
Example #2
0
 /// <summary>Register a topology listener with the topology manager.</summary>
 /// <param name="manager">The topology manager to add the listener to</param>
 /// <param name="listener">the listener to register</param>
 public static void AddTopologyListener(this TopologyManager manager, BaseDotnetTopologyListener listener)
 {
     manager.addTopologyListener(new DotnetTopologyListenerWrapper(new DotnetTopologyEventDispatcher(listener)));
 }
Example #3
0
 /// <summary>Initialize this job event disptacher</summary>
 /// <param name="listener">the <see cref="BaseDotnetJobListener"/> to which the events are dispatched</param>
 public DotnetTopologyEventDispatcher(BaseDotnetTopologyListener listener)
 {
     this.listener = listener;
 }