Click or drag to resize

SelfHostMain Method

Version 91.1.160
This function should be called from the application entry point function (typically Program.Main) to execute a secondary process e.g. gpu, plugin, renderer, utility This overload is specifically used for .Net Core. For hosting your own BrowserSubProcess it's preferable to use the Main method provided by this class. - Pass in command line args - To support High DPI Displays you should call Cef.EnableHighDPISupport before any other processing or add the relevant entries to your app.manifest

Namespace:  CefSharp.BrowserSubprocess
Assembly:  CefSharp.Core (in CefSharp.Core.dll) Version: 91.1.160.0
Syntax
public static int Main(
	string[] args
)

Parameters

args
Type: SystemString
command line args

Return Value

Type: Int32
If called for the browser process (identified by no "type" command-line value) it will return immediately with a value of -1. If called for a recognized secondary process it will block until the process should exit and then return the process exit code.
See Also