Esempio n. 1
0
 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;
 }
Esempio n. 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;
        }
Esempio n. 3
0
 public MixedJsModule(JsProcess someProcess, string someFullyQualifiedType, RequireOptions someOptions)
     : base(someProcess)
 {
     myAssemblyName = (someOptions.Assembly != null ? someOptions.Assembly.ToString() : String.Empty);
     myFullyQualifiedType = someFullyQualifiedType;
 }
Esempio n. 4
0
 public PureJsModule(JsProcess someProcess,ModuleResolutionType someResType)
     : base(someProcess)
 {
     myResType = someResType;
 }