public bool Enter()
 {
     previousContext           = JavaScriptContext.Current;//force context switch to internal context
     JavaScriptContext.Current = context;
     return(true);
 }
Exemplo n.º 2
0
 public RuntimeService(JavaScriptRuntime runtime)
 {
     this.runtime = runtime;
     context      = runtime.CreateContext();
     InternalContextSwitchService = new RuntimeInternalContextSwitcher(context);
 }
 public RuntimeInternalContextSwitcher(JavaScriptContext internalContext)
 {
     context = internalContext;
     context.AddRef();
 }
Exemplo n.º 4
0
 public ContextSwitchService(JavaScriptContext context, EventWaitHandle handle)
 {
     Handle       = handle;
     this.context = context;
     context.AddRef();
 }