Click or drag to resize

RequestContextHandler Class

Version 87.1.132
Implement this interface to provide handler implementations. The handler instance will not be released until all objects related to the context have been destroyed. Implement this interface to cancel loading of specific plugins
Inheritance Hierarchy
SystemObject
  CefSharp.HandlerRequestContextHandler

Namespace:  CefSharp.Handler
Assembly:  CefSharp (in CefSharp.dll) Version: 87.1.132.0 (87.1.132.0)
Syntax
public class RequestContextHandler : IRequestContextHandler

The RequestContextHandler type exposes the following members.

Constructors
  NameDescription
Public methodRequestContextHandler
Initializes a new instance of the RequestContextHandler class
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Protected methodGetResourceRequestHandler
Called on the CEF IO thread before a resource request is initiated. This method will not be called if the client associated with browser returns a non-NULL value from GetResourceRequestHandler(IWebBrowser, IBrowser, IFrame, IRequest, Boolean, Boolean, String, Boolean) for the same request (identified by Identifier).
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnBeforePluginLoad
Called on the CEF IO thread before a plugin instance is loaded. The default plugin policy can be set at runtime using the `--plugin-policy=[allow|detect|block]` command-line flag.
Public methodOnInitialize
The ActionT is executed when the RequestContext has been initialized, after the preferences/proxy preferences have been set, before OnRequestContextInitialized.
Protected methodOnRequestContextInitialized
Called immediately after the request context has been initialized. It's important to note this event is fired on a CEF UI thread, which by default is not the same as your application UI thread.
Public methodSetPreferenceOnContextInitialized
Sets the preferences when the OnRequestContextInitialized(IRequestContext) method is called. If value is null the preference will be restored to its default value. Preferences set via the command-line usually cannot be modified.
Public methodSetProxyOnContextInitialized(String, NullableInt32)
Sets the proxy preferences when the OnRequestContextInitialized(IRequestContext) method is called. Proxy set via the command-line usually cannot be modified.
Public methodSetProxyOnContextInitialized(String, String, NullableInt32)
Sets the proxy preferences when the OnRequestContextInitialized(IRequestContext) method is called. Proxy set via the command-line usually cannot be modified.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also