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 async void ProcessAsync(string Mac) { EasyWakeOnLanClient WOLClient = new EasyWakeOnLanClient(); await WOLClient.WakeAsync(Mac); }
static void ProcessSync(string Mac) { EasyWakeOnLanClient WOLClient = new EasyWakeOnLanClient(); WOLClient.Wake(Mac); }
public EasyWakeOnLanClientIntegrationTests(UdpListenerFixture udpListenerFixture) { _udpListenerFixture = udpListenerFixture; _udpListenerFixture.ClearRecivedMessage(); _easyWakeOnLanClient = new EasyWakeOnLanClient(); }