/// <summary> /// The OnConsoleMessage. /// </summary> /// <param name="browser">The browser<see cref="CefBrowser"/>.</param> /// <param name="level">The level<see cref="CefLogSeverity"/>.</param> /// <param name="message">The message<see cref="string"/>.</param> /// <param name="source">The source<see cref="string"/>.</param> /// <param name="line">The line<see cref="int"/>.</param> /// <returns>The <see cref="bool"/>.</returns> protected override bool OnConsoleMessage(CefBrowser browser, CefLogSeverity level, string message, string source, int line) { var e = new ConsoleMessageEventArgs(level, message, source, line); _core.InvokeIfRequired(() => _core.OnConsoleMessage(e)); return(e.Handled); }