Exemplo n.º 1
0
 public static async void CheckAndInstallAdapter(Action <bool> callback)
 {
     await Task.Run(() => {
         if (NetworkAdapterInstaller.InstallMode != NetForwardMode.Adapter)
         {
             callback(NetworkAdapterInstaller.OpenSuperMode());
             return;
         }
         callback((!NetworkAdapterInstaller.ReleaseDevcon() ? false : NetworkAdapterInstaller.CheckAndOpenAdapter()));
     });
 }