public void Bind(string functionName, IWebView context, Action<string, IJavascriptObject, IJavascriptObject[]> action) { lock (this) { var cfrV8Handler = action.Convert(functionName); _Functions.Value.Add(cfrV8Handler); var func = CfrV8Value.CreateFunction(functionName, cfrV8Handler); _CfrV8Value.SetValue(functionName, func, CfxV8PropertyAttribute.ReadOnly | CfxV8PropertyAttribute.DontDelete); } }