Beispiel #1
0
 public void Dispose()
 {
     Stop(false);
     //clear will lock, to prevent outputting to disposed object
     Clear();
     doOutput = null;
     _timer.Dispose();
 }
 public void Dispose()
 {
     Stop(false);
     //clear will lock, to prevent outputting to disposed object
     Clear();
     doOutput = null;
     _timer.Dispose();
 }
Beispiel #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="doOutput">Will be called on the home thread.</param>
 public ProcessOutputTimer(DoOutputCallback doOutput)
 {
     this.doOutput = doOutput;
     _timer        = new Timer();
     _timer.Tick  += _timer_Elapsed;
 }
 public ProcessOutputTimer(DoOutputCallback doOutput)
 {
     this.doOutput = doOutput;
     _timer = new Timer();
     _timer.Elapsed += _timer_Elapsed;
 }