예제 #1
0
파일: TVWol.cs 프로젝트: Valery310/TVTK
 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());
             }
         });
     }
 }
예제 #2
0
 static async void ProcessAsync(string Mac)
 {
     EasyWakeOnLanClient WOLClient = new EasyWakeOnLanClient();
     await WOLClient.WakeAsync(Mac);
 }
예제 #3
0
        static void ProcessSync(string Mac)
        {
            EasyWakeOnLanClient WOLClient = new EasyWakeOnLanClient();

            WOLClient.Wake(Mac);
        }
 public EasyWakeOnLanClientIntegrationTests(UdpListenerFixture udpListenerFixture)
 {
     _udpListenerFixture = udpListenerFixture;
     _udpListenerFixture.ClearRecivedMessage();
     _easyWakeOnLanClient = new EasyWakeOnLanClient();
 }