Adding empty class for eject optical drive action.
4 using System.Runtime.Serialization;
5 using System.Threading;
13 [AttributeObject(Id = "Thread.Sleep", Name = "Sleep", Description = "Have the current thread sleep for the specified amount of milliseconds.")]
14 public class ActionSleep : Action
17 [AttributeObjectProperty
19 Id = "Thread.Sleep.Timeout",
20 Name = "Timeout (ms)",
21 Description = "Specifies the number of milliseconds this action will sleep for.",
27 public int TimeoutInMilliseconds { get; set; }
31 TimeoutInMilliseconds = 1000;
35 public ActionSleep(int aMillisecondsTimeout)
37 TimeoutInMilliseconds = aMillisecondsTimeout;
40 public override string Brief()
42 return Name + " for " + TimeoutInMilliseconds + " ms";
46 protected override void DoExecute()
48 Thread.Sleep(TimeoutInMilliseconds);