public bool init(JsModule someCallingModule, JsProcess someProcess)
 {
     myModule = someCallingModule;
     myModule.Engine.SetFunction("__test",new Action<bool>(this.testNullable));
     myModule.Engine.SetFunction("__testThrow",new Action(this.testFailTestInCSharp));
     return true;
 }
Beispiel #2
0
        public bool init(JsModule someCallingModule, JsProcess someProcess)
        {
            var toReturn = true;

            engine = someCallingModule.Engine;
            process = someProcess;

            engine.SetFunction("__log", new Action<object>(Console.WriteLine));
            engine.SetFunction("__updateLevel", new Action<object>(someProcess.OnChangeLogLevel));

            return toReturn;
        }
Beispiel #3
0
 public MixedJsModule(JsProcess someProcess, string someFullyQualifiedType, RequireOptions someOptions)
     : base(someProcess)
 {
     myAssemblyName = (someOptions.Assembly != null ? someOptions.Assembly.ToString() : String.Empty);
     myFullyQualifiedType = someFullyQualifiedType;
 }
Beispiel #4
0
 public PureJsModule(JsProcess someProcess,ModuleResolutionType someResType)
     : base(someProcess)
 {
     myResType = someResType;
 }