예제 #1
0
 public BinaryCodeSource(ScriptModuleHandle mh)
 {
     _mh = mh;
 }
예제 #2
0
 public LoadedModuleHandle LoadModuleImage(ScriptModuleHandle moduleImage)
 {
     var handle = new LoadedModuleHandle();
     handle.Module = new LoadedModule(moduleImage.Module);
     return handle;
 }
예제 #3
0
 public Process CreateProcess(IHostApplication host, ScriptModuleHandle moduleHandle, ICodeSource src)
 {
     SetGlobalEnvironment(host, src);
     var module = _engine.LoadModuleImage(moduleHandle);
     return InitProcess(host, src, ref module);
 }
예제 #4
0
 public void Write(TextWriter output, ScriptModuleHandle module)
 {
     WriteImage(output, module.Module);
 }
예제 #5
0
 private ModuleImage FromHandle(ScriptModuleHandle module)
 {
     return module.Module;
 }
예제 #6
0
 public void Save(ScriptModuleHandle module, Stream output)
 {
     _formatter.Serialize(output, FromHandle(module));
 }