Ejemplo n.º 1
0
 /// <summary>
 /// Gets the currently connected devices.
 /// </summary>
 public static IEnumerable <AndroidDevice> GetDevices(int timeout)
 {
     try
     {
         using (var socket = new AdbDevicesRequest(EndPoint))
         {
             return(socket.Devices());
         }
     }
     catch (Exception ex)
     {
         throw new AdbException(string.Format("Failed to list devices because: {0}", ex.Message));
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets the currently connected devices.
 /// </summary>
 public static IEnumerable<AndroidDevice> GetDevices(int timeout)
 {
     try
     {
         using (var socket = new AdbDevicesRequest(EndPoint))
         {
             return socket.Devices();
         }
     }
     catch (Exception ex)
     {
         throw new AdbException(string.Format("Failed to list devices because: {0}", ex.Message));
     }
 }