This is a little example of the usage of EasyWakeOnLan that can be usable by including the reference to EasyWakeOnLan.dll, but the easiest mode is including the reference to this library as nuget packet
After version 3.0.16
supports debugging with SourceLink
string Mac = ...Get the Mac Address....
//Instance the class
EasyWakeOnLanClient WOLClient = new EasyWakeOnLanClient();
//Wake the remote PC
WOLClient.Wake(Mac);
string Mac = ...Get the Mac Address....
//Instance the class
EasyWakeOnLanClient WOLClient = new EasyWakeOnLanClient();
//Wake the remote PC
await WOLClient.WakeAsync(Mac);
Register IEasyWakeOnLanCient
using EasyWakeOnLanCient
AppVeyor | Travis | Azure Pipelines |
---|---|---|