public async static void WOL(ObservableCollection <TVWol> AllTV) { foreach (var item in AllTV) { await Task.Run(() => { EasyWakeOnLanClient WOLClient = new EasyWakeOnLanClient(); for (int i = 0; i < 15; i++) { WOLClient.Wake(item.Mac.ToString()); } }); } }
static void ProcessSync(string Mac) { EasyWakeOnLanClient WOLClient = new EasyWakeOnLanClient(); WOLClient.Wake(Mac); }
public void Wake_ShouldBeExpectedResult(string mac, string expected) { _easyWakeOnLanClient.Wake(mac); Thread.Sleep(500); AssertSendedUdpMessage(expected); }