/// <summary> /// Starts the EyeX host and waits for all profiles to become available. /// </summary> /// <param name="host">The host.</param> /// <param name="version">The engine version.</param> private static bool StartHost(EyeXHost host, out Version version) { // Start the host. host.Start(); // Wait for the client to connect. if (!host.WaitUntilConnected(TimeSpan.FromSeconds(5))) { version = null; return false; } // Get the engine version number. version = host.GetEngineVersion().Result; return true; }