PageRenderTime 263ms CodeModel.GetById 96ms app.highlight 1ms RepoModel.GetById 165ms app.codeStats 0ms

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