Click or drag to resize

IAsyncMethodInterceptorInterceptAsync Method

Version 130.1.90
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).

Namespace: CefSharp.ModelBinding
Assembly: CefSharp (in CefSharp.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax
Task<Object> InterceptAsync(
	Func<Object[], Object> method,
	Object[] parameters,
	string methodName
)

Parameters

method  FuncObject, Object
A Func that represents the method to be called
parameters  Object
paramaters to be passed to method
methodName  String
Name of the method to be called

Return Value

TaskObject
A Task representing the method result
Example
Task<object> IAsyncMethodInterceptor.InterceptAsync(Func<object[], object> method, object[] parameters, string methodName) { object result = method(parameters); Debug.WriteLine("Called " + methodName); return result; }
See Also