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