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