Files
cefsharp/CefSharp/Internals/IJavascriptObjectRepositoryInternal.cs
T
Alex Maitland ab8223d4b9 Core - Add IAsyncMethodInterceptor (#3296)
Core - Add IAsyncMethodInterceptor
  - Add IAsyncMethodInterceptor
    Extension of IMethodInterceptor to allow for easier evaluation of async taskScheduler
  - Add Additional unit tests
  - Add JavascriptBindingSettings.AlwaysInterceptAsynchronously for cases where you'd like all method calls to use 
    IAsyncMethodInterceptor.InterceptAsync

Follow up to PR #3291

Co-authored-by: Andrew Sampson <andrew@rainway.com>
Co-authored-by: Emily Hudson <emily33901@gmail.com>
2021-01-09 13:17:50 +10:00

25 lines
1.0 KiB
C#

// Copyright © 2020 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
//
using CefSharp.JavascriptBinding;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace CefSharp.Internals
{
public interface IJavascriptObjectRepositoryInternal : IJavascriptObjectRepository
{
TryCallMethodResult TryCallMethod(long objectId, string name, object[] parameters);
Task<TryCallMethodResult> TryCallMethodAsync(long objectId, string name, object[] parameters);
bool TryGetProperty(long objectId, string name, out object result, out string exception);
bool TrySetProperty(long objectId, string name, object value, out string exception);
bool IsBrowserInitialized { get; set; }
List<JavascriptObject> GetObjects(List<string> names = null);
List<JavascriptObject> GetLegacyBoundObjects();
void ObjectsBound(List<Tuple<string, bool, bool>> objs);
}
}