4 using System.Collections.Generic;
5 using System.Diagnostics;
7 using System.Runtime.InteropServices;
8 using System.Runtime.Serialization;
10 using System.Threading.Tasks;
12 namespace SharpDisplayManager
15 [AttributeObject(Id = "Cec.Device.PowerOn", Name = "CEC Device Power On", Description = "Turns on the specified CEC device on your HDMI bus.")]
16 public class ActionCecDevicePowerOn : ActionCecDevice
21 /// <returns></returns>
22 public override string BriefBase()
24 return "CEC Power On " + DeviceName;
30 protected override async Task DoExecute()
32 if (Cec.Client.Static == null)
34 Trace.WriteLine("WARNING: No CEC client installed.");
38 Cec.Client.Static.Lib.PowerOnDevices(Device);