Esempio n. 1
0
        public override bool TryInvokeMember(InvokeMemberBinder binder, object[] args, out object result)
        {
            ErlNifTerm term = Erl.CallErlangFn(DotNetToErlang(moduleName), DotNetToErlang(binder.Name), args.Select(x => Erl.ExportAuto(x)).ToArray());

            result = Erl.ExtractAuto(term);
            if (result != null)
            {
                return(true);
            }
            return(false);
        }
Esempio n. 2
0
 public TermException(ErlNifTerm term, string message, Exception inner)
     : base(message, inner)
 {
     this.term = term;
 }
Esempio n. 3
0
 public TermException(ErlNifTerm term)
 {
     this.term = term;
 }
Esempio n. 4
0
 public TermException(ErlNifTerm term, string message)
     : base(message)
 {
     this.term = term;
 }
Esempio n. 5
0
 internal ProcessResult(ErlNifTerm native)
 {
     this.native = native;
 }