Click or drag to resize

IAsyncMethodInterceptorInterceptAsync Method

Version 107.1.120

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

Parameters

method
Type: SystemFuncObject, Object
A Func that represents the method to be called
parameters
Type: SystemObject
paramaters to be passed to method
methodName
Type: SystemString
Name of the method to be called

Return Value

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