Adding a bunch of CEC actions.
4 using System.Runtime.Serialization;
5 using System.Threading;
13 [AttributeAction(Id = "Thread.Sleep", Name = "Sleep", Description = "Have the current thread sleep for the specified amount of milliseconds.")]
14 public class ActionSleep : Action
17 private readonly int iMillisecondsTimeout;
21 iMillisecondsTimeout = 1000;
25 public ActionSleep(int aMillisecondsTimeout)
27 iMillisecondsTimeout = aMillisecondsTimeout;
30 public override void Execute()
32 Thread.Sleep(iMillisecondsTimeout);