static void Main(string[] args) { Host = new ChromeServerHost(); Host.LostConnectionToChrome += Host_LostConnectionToChrome; Thread serverThread = new Thread(ServerThread); serverThread.Start(); Thread.Sleep(250); Host.Listen(); }
public Automation() { // register host with chrome Host = new ChromeServerHost(); if (!Host.IsRegisteredWithChrome()) { Host.GenerateManifest(Description, AllowedOrigins); Host.Register(); } serverPipes = new Dictionary <long, ServerPipe>(); browserProcessDic = new Dictionary <long, int>(); BrowserInstallPath = GetInstalledBrowserPath(); BackUpFilePath = $"{ GetSavedBackUpPath("AutomationProfile")}\\{AutomationBackUpFileName}.zcg"; BackupDataItems = GetBackupItems(); CommonBackupDataItems = GetDefaultBackupDataItems(); }