Click or drag to resize
CefSharpSettings Class
Version 63.0.0
Use this static class to configure some CefSharp specific settings like WcfTimeout
Inheritance Hierarchy
SystemObject
  CefSharpCefSharpSettings

Namespace: CefSharp
Assembly: CefSharp (in CefSharp.dll) Version: 63.0.0.0 (63.0.0.0)
Syntax
public static class CefSharpSettings

The CefSharpSettings type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberConcurrentTaskExecution
This influences the behavior of RegisterAsyncJsObject and how method calls are made. By default the [!:MethodRunnerQueue] executes Tasks in a sync fashion. Setting this property to true will allocate new Tasks on TaskScheduler.Default for execution.
Public propertyStatic memberLegacyJavascriptBindingEnabled
Objects registered using RegisterJsObject and RegisterAsyncJsObject will be automatically bound in the first render process that's created for a ChromiumWebBrowser instance. If you perform a cross-site navigation a process switch will occur and bound objects will no longer be automatically avaliable. For those upgrading from version 57 or below that do no perform cross-site navigation (e.g. Single Page applications or applications that only refer to a single domain) can set this property to true and use the old behaviour.Defaults to false NOTE: Set this before your first call to RegisterJsObject or RegisterAsyncJsObject
Public propertyStatic memberProxy
The proxy options that will be used for all connections If set before the call to Cef.Initialize, command line arguments will be set for you If a username and password is provided and the IPs match authentication is done automatically NOTE: GetAuthCredentials won't be called for a proxy server that matches the IP NOTE: It isn't possble to change the proxy after the call to Cef.Initialize
Public propertyStatic memberShutdownOnExit
For the WinForms and WPF instances of ChromiumWebBrowser the relevant Application Exit event is hooked and Cef.Shutdown() called by default. Set this to false to disable this behaviour. This value needs to be set before the first instance of ChromiumWebBrowser is created as the event handlers are hooked in the static constructor for the ChromiumWebBrowser class
Public propertyStatic memberWcfEnabled
WCF is used by RegisterJsObject feature for Javascript Binding It's reccomended that anyone developing a new application use the RegisterAsyncJsObject version which communicates using native Chromium IPC.
Public propertyStatic memberWcfTimeout
Change the Close timeout for the WCF channel used by the sync JSB binding. The default value is currently 2 seconds. Changing this to Zero will result on Abort() being called on the WCF Channel Host
Top
See Also