/src/Manos.IO/Manos.IO/ITimerWatcher.cs

http://github.com/jacksonh/manos · C# · 28 lines · 12 code · 3 blank · 13 comment · 0 complexity · 626c5e168f772ebc44f61ae3bbc99b04 MD5 · raw file

  1. using System;
  2. namespace Manos.IO
  3. {
  4. /// <summary>
  5. /// Timer watchers represent recurring timer events.
  6. /// <para>Corresponding event: the initial timeout has passed, or the
  7. /// repeat timeout has passed.</para>
  8. /// </summary>
  9. public interface ITimerWatcher : IBaseWatcher
  10. {
  11. /// <summary>
  12. /// Gets or sets the interval at which the watcher callback should
  13. /// be invoked. Changing this value need not immediatly restart the
  14. /// timeout, use the <see cref="Again"/> method for that.
  15. /// </summary>
  16. TimeSpan Repeat {
  17. get;
  18. set;
  19. }
  20. /// <summary>
  21. /// Rearm the timer with the interval specified in <see cref="Repeat"/>.
  22. /// </summary>
  23. void Again ();
  24. }
  25. }