/// <summary> /// Create a task to start this device. /// </summary> public override Task Start(Action <string> logger) { var startTask = Task.Factory.StartNew(() => { logger("Starting emulator"); avd.Start(logger); }); // Wait for device return(startTask.ContinueWith(x => { logger("Waiting for emulator"); new Adb().WaitForDevice(avd.Name, Adb.Timeout.WaitForDevice); })); }
/// <summary> /// Run the process. /// </summary> protected override void DoWork() { avd.Start(LogOutput); }