Click or drag to resize

RequestContextHandler.OnInitialize Method

Version 108.4.130
The Action<T> is executed when the RequestContext has been initialized, after the preferences/proxy preferences have been set, before OnRequestContextInitialized.

Namespace:  CefSharp.Handler
Assembly:  CefSharp (in CefSharp.dll) Version: 108.4.130.0 (108.4.130.0)
Syntax
public RequestContextHandler OnInitialize(
	Action<IRequestContext> onContextInitialziedAction
)

Parameters

onContextInitialziedAction
Type: System.Action<IRequestContext>
action to perform on context initialize

Return Value

Type: RequestContextHandler
A RequestContextHandler instance allowing you to chain multiple AddPreference calls together
Remarks
Only a single action reference is maintained, multiple calls will result in the previous action reference being overriden.
See Also