Click or drag to resize

IAsyncMethodInterceptor Interface

Version 130.1.90
Provides the capability intercept async/sync Net method calls made from javascript as part of the JavascriptBinding (JSB) implementation. One example use case is logging method calls. Extends IMethodInterceptor to add async support.

Namespace: CefSharp.ModelBinding
Assembly: CefSharp (in CefSharp.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax
public interface IAsyncMethodInterceptor : IMethodInterceptor

The IAsyncMethodInterceptor type exposes the following members.

Methods
 NameDescription
Public methodCode exampleIntercept Called before the method is invokved. You are now responsible for evaluating the function and returning the result.
(Inherited from IMethodInterceptor)
Public methodCode exampleInterceptAsync Called before an async method is invoked. You are now responsible for evaluating the function and returning the result. Only methods that return a Task will call this method, other non asynchronous types will call Intercept(FuncObject, Object, Object, String). (async void method will also call Intercept as they do not return a Task).
Top
See Also