/// <summary> /// Creates new <see cref="ConsoleHost"/>. /// </summary> /// <param name="serviceHost">Service host instance.</param> public ConsoleHost(ServiceHostBase serviceHost) { m_serviceHost = serviceHost; m_originalForegroundColor = System.Console.ForegroundColor; m_clientID = Guid.NewGuid(); m_displayLock = new object(); }