diff --git a/CefSharp/IJavascriptObjectRepository.cs b/CefSharp/IJavascriptObjectRepository.cs
index b47f12dd1..f6ce49c51 100644
--- a/CefSharp/IJavascriptObjectRepository.cs
+++ b/CefSharp/IJavascriptObjectRepository.cs
@@ -3,9 +3,7 @@
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
-
using CefSharp.Event;
-using CefSharp.ModelBinding;
namespace CefSharp
{
@@ -16,19 +14,25 @@ namespace CefSharp
public interface IJavascriptObjectRepository : IDisposable
{
///
- /// Register a javascript object
+ /// Register an object for binding in Javascript. You can either
+ /// register an object in advance or as part of the
+ /// event that will be called if no object matching object is found in the registry.
+ /// Objects binding is now initiated in Javascript through the CefSharp.BindObjectAsync
+ /// function (returns a Promose).
+ /// For more detailed examples see https://github.com/cefsharp/CefSharp/issues/2246
/// The equivilient to RegisterJsObject is isAsync = false
/// The equivilient RegisterAsyncJsObject is isAsync = true
///
- /// name
- /// object
+ /// object name
+ /// the object that will be bound in javascript
///
/// if true the object will be registered for async communication,
/// only methods will be exposed and when called from javascript will return a Promise to be awaited.
/// This method is newer and recommended for everyone starting out as it is faster and more reliable.
/// If false then methods and properties will be registered, this method relies on a WCF service to communicate.
///
- /// binding options
+ /// binding options, by default method/property names are camelCased, you can control this
+ /// and other advanced options though this class.
void Register(string name, object objectToBind, bool isAsync = false, BindingOptions options = null);
///
/// Has bound objects
@@ -40,13 +44,12 @@ namespace CefSharp
/// name
/// true if object with matching name bound
bool IsBound(string name);
-
///
/// Event handler is called when an object with a given name is requested for binding and is not yet
- /// registered with the repository
+ /// registered with the repository. Use
+ /// to register objects (using
///
event EventHandler ResolveObject;
-
///
/// Event handler is triggered when a object has been successfully bound on javascript
///
diff --git a/CefSharp/IWebBrowser.cs b/CefSharp/IWebBrowser.cs
index 679bc41f1..261d8854e 100644
--- a/CefSharp/IWebBrowser.cs
+++ b/CefSharp/IWebBrowser.cs
@@ -3,7 +3,6 @@
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
-using CefSharp.ModelBinding;
namespace CefSharp
{
@@ -99,6 +98,9 @@ namespace CefSharp
/// object will be a standard javascript Promise object which is usable to wait for completion or failure.
void RegisterAsyncJsObject(string name, object objectToBind, BindingOptions options = null);
+ ///
+ /// The javascript object repository, one repository per ChromiumWebBrowser instance.
+ ///
IJavascriptObjectRepository JavascriptObjectRepository { get; }
///