コード例 #1
0
ファイル: Program.cs プロジェクト: TsubakiP/Tsubaki
        private static void main()
        {
            var client = new DialogflowClient("e03ae972dbf44fc79274468c468bcbe0");
            var uia    = new WsLocalhost(client);

            uia.CreateDebugClient();
        }
コード例 #2
0
        /// <summary>
        /// [Debug Only] Creates the new chrome client for debug.
        /// </summary>
        /// <returns></returns>
#if DEBUG
        public static Process CreateDebugClient(this WsLocalhost wss, string contentPath = "./test.html")
        {
            try
            {
                var fi = new FileInfo(contentPath);

                return(Process.Start("chrome.exe", $@"file://{fi.FullName}" + " --incognito"));
            }
            catch (System.ComponentModel.Win32Exception)
            {
                Debug.WriteLine("Unable to find Google Chrome, chrome.exe not found!");
            }
            return(default(Process));
        }