private void StartEmuAutomationController() { Console.WriteLine("-> controller will listen for connection on " + _commandLine.Binding); Console.WriteLine("-> controller will identify controls using " + _commandLine.AutomationIdentification); _emuAutomationController = new EmuAutomationController.EmuAutomationController(); _emuAutomationController.Trace += (sender, args) => Console.WriteLine("-> " + args.Message); _emuAutomationController.Start(new Uri(_commandLine.Binding), _commandLine.AutomationIdentification); Console.WriteLine("-> controller started"); Console.WriteLine(); }
protected override void Dispose(bool isDisposing) { if (isDisposing) { if (_emuAutomationController != null) { _emuAutomationController.Dispose(); _emuAutomationController = null; } } base.Dispose(isDisposing); }