public Chrome() : base(BrowserType.Chrome, BrowserProcess.chrome)
 {
     chromeHttpServer = new ChromeHttpServer(this);
 }
        private void ConnectToChrome()
        {
            if (!chromeHttpServer.Disposed && !ChromeIsRunning)
                chromeHttpServer.Dispose();

            if (chromeHttpServer.Disposed)
                chromeHttpServer = new ChromeHttpServer(this);
        }
        private void Dispose(bool disposing)
        {
            if (!this.disposed)
            {
                // If disposing equals true, dispose all managed
                // and unmanaged resources.
                if (disposing)
                {
                    // Dispose managed resources.

                }

                // Call the appropriate methods to clean up
                // unmanaged resources here.
                // If disposing is false,
                // only the following code is executed.
                chromeHttpServer.Dispose();
                chromeHttpServer = null;

                // Note disposing has been done.
                disposed = true;
            }
        }