/// <summary>
        /// setting up browser for using direct connection
        /// </summary>
        /// <param name="webBrowser">cefsharp browser interface</param>
        public void ConfigureBrowserDirect(IWpfWebBrowser webBrowser)
        {
            _log.Called(string.Empty);

            try
            {
                Cef.UIThreadTaskFactory.StartNew(delegate
                {
                    var rc      = webBrowser.GetBrowser().GetHost().RequestContext;
                    var v       = new Dictionary <string, object>();
                    v["mode"]   = "direct";
                    v["server"] = "";
                    string error;
                    bool success = rc.SetPreference("proxy", v, out error);
                });
            }
            catch (Exception e)
            {
                _log.Error(e.Message);
            }
        }