Click or drag to resize

SelfHostMain Method

Version 118.6.80
This function should be called from the application entry point function (typically Program.Main) to execute a secondary process e.g. gpu, 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

Namespace:  CefSharp.BrowserSubprocess
Assembly:  CefSharp.Core (in CefSharp.Core.dll) Version: 118.6.80.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