Calling .Net function with System.Action delegate as argument from JS

Mar 29, 2014 at 7:06 PM
Hi,

first thank you for this great project.
I'm using it as javascript engine for my HA project HomeGenie.
I'm trying to call a .Net method which has an argument of type System.Action but I get:

"No public methods with the specified arguments were found."

The function is defined as:
public void Setup(Action functionBlock)
and I'm trying to call it like this:
hg.Program.Setup(function(){
    // ...
});
other methods which belong to hg.Program class work fine.

Thanks.
Gene.
Coordinator
Mar 29, 2014 at 8:47 PM
Are you using Jint 2.0 ?
If so please file a bug on Github. Otherwise, please use Jint 2.0 ;)
Mar 29, 2014 at 9:12 PM
yes, I'm using 2.0. Going to github =)