mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 19:25:01 +00:00
WebBrowserExtensions - Hide RegisterJsObject and RegisterAsyncJsObject from intellisense
They're obsolete and will throw exceptions anyway, only exist to point upgrading users to the correct doco
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Specialized;
|
||||
using System.ComponentModel;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
@@ -30,6 +31,7 @@ namespace CefSharp
|
||||
/// <exception cref="Exception">Browser is already initialized. RegisterJsObject must be +
|
||||
/// called before the underlying CEF browser is created.</exception>
|
||||
[Obsolete("This method has been removed, see https://github.com/cefsharp/CefSharp/issues/2990 for details on migrating your code.")]
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public static void RegisterJsObject(this IWebBrowser webBrowser, string name, object objectToBind, BindingOptions options = null)
|
||||
{
|
||||
throw new NotImplementedException("This method has been removed, see https://github.com/cefsharp/CefSharp/issues/2990 for details on migrating your code.");
|
||||
@@ -48,6 +50,7 @@ namespace CefSharp
|
||||
/// <remarks>The registered methods can only be called in an async way, they will all return immediately and the resulting
|
||||
/// object will be a standard javascript Promise object which is usable to wait for completion or failure.</remarks>
|
||||
[Obsolete("This method has been removed, see https://github.com/cefsharp/CefSharp/issues/2990 for details on migrating your code.")]
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public static void RegisterAsyncJsObject(this IWebBrowser webBrowser, string name, object objectToBind, BindingOptions options = null)
|
||||
{
|
||||
throw new NotImplementedException("This method has been removed, see https://github.com/cefsharp/CefSharp/issues/2990 for details on migrating your code.");
|
||||
|
||||
Reference in New Issue
Block a user