using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CefSharp.ModelBinding { /// /// Provides the capability intercepting get/set property calls made from javascript as part of the /// JavascriptBinding (JSB) implementation. /// public interface IPropertyInterceptor { /// /// Called before the get property is invokved. You are now responsible for evaluating /// the property and returning the result. /// /// A Func that represents the property to be called /// Name of the property to be called /// The property result /// /// /// propertyGetter, string propertyName) /// { /// object result = propertyGetter(); /// Debug.WriteLine("InterceptGet " + propertyName); /// return result; /// } /// ]]> /// /// object InterceptGet(Func propertyGetter, string propertName); /// /// Called before the set property is invokved. You are now responsible for evaluating /// the property. /// /// A Func that represents the property to be called /// paramater to be set to property /// Name of the property to be called /// /// /// propertySetter, object parameter, string propertName) /// { /// Debug.WriteLine("InterceptSet " + propertName); /// propertySetter(parameter); /// } /// ]]> /// /// void InterceptSet(Action propertySetter, object parameter, string propertName); } }