Skip to content

Commit c944774

Browse files
puran1218xuew8412
andauthored
Update IJavascriptObjectRepository.cs documentation to clarify async binding behavior for .NET Framework and .NET Core (#5102)
* Update IJavascriptObjectRepository.cs documentation to clarify async binding behavior for .NET Framework and .NET Core * remove the obsolete async binding lines for Register method --------- Co-authored-by: Xuewen Zhang <[email protected]>
1 parent 7079869 commit c944774

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

CefSharp/IJavascriptObjectRepository.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ public interface IJavascriptObjectRepository : IDisposable
3131
/// Objects binding is now initiated in Javascript through the CefSharp.BindObjectAsync
3232
/// function (returns a Promise).
3333
/// For more detailed examples see https://github.com/cefsharp/CefSharp/issues/2246
34-
/// The equivilient to RegisterJsObject is isAsync = false
35-
/// The equivilient RegisterAsyncJsObject is isAsync = true
3634
/// </summary>
3735
/// <param name="name">object name</param>
3836
/// <param name="objectToBind">the object that will be bound in javascript</param>
@@ -41,8 +39,9 @@ public interface IJavascriptObjectRepository : IDisposable
4139
/// if true the object will be registered for async communication,
4240
/// only methods will be exposed and when called from javascript will return a Promise to be awaited.
4341
/// This method is newer and recommended for everyone starting out as it is faster and more reliable.
44-
/// If false then methods and properties will be registered, this method relies on a WCF service to communicate.
45-
/// If you are targeting .Net Core then you can only use isAsync = true as Microsoft has chosen not to support WCF.
42+
/// If false then methods and properties will be registered, this method relies on a WCF service to communicate,
43+
/// which is only available when targeting the .NET Framework.
44+
/// This parameter is not available when targeting .NET Core or .NET 5+, where only async binding is supported.
4645
/// </param>
4746
#endif
4847
/// <param name="options">binding options, by default method/property names are camelCased, you can control this

0 commit comments

Comments
 (0)