CEfsharp - OnDevToolsMessage

68 Views Asked by At

The Description for the OnDevToolsMessage function says: https://cefsharp.github.io/api/94.4.x/html/M_CefSharp_Callback_IDevToolsMessageObserver_OnDevToolsMessage.htm

Method that will be called on receipt of a DevTools protocol message. Method result dictionaries include an "id" (int) value that identifies the orginating method call sent from IBrowserHost.SendDevToolsMessage, and optionally either a "result" (dictionary) or "error" (dictionary) value. The "error" dictionary will contain "code" (int) and "message" (string) values. Event dictionaries include a "method" (string) value and optionally a "params" (dictionary) value. See the DevTools protocol documentation at https://chromedevtools.github.io/devtools-protocol/ for details of supported method calls and the expected "result" or "params" dictionary contents. JSON dictionaries can be parsed using the CefParseJSON function if desired, however be aware of performance considerations when parsing large messages (some of which may exceed 1MB in size).

But in the Browserhost method - there are two functions: -ExecuteDevToolsMethod -SendDevToolsMessage

Then it is not clear to me - if, according to the description, calling the OnDevToolsMessage function calls the OnDevToolsMessage function, then what does the ExecuteDevToolsMethod function do?? What function does it call ?

0

There are 0 best solutions below