/// <summary> /// Initializes a new instance of the <see cref="JsScope"/> struct /// </summary> /// <param name="context">The context to create the scope for</param> public JsScope(JsContext context) { _disposedFlag = new StatedFlag(); _previousContext = JsContext.Current; JsContext.Current = context; }
/// <summary> /// Initializes a new instance of the <see cref="IeJsScope"/> struct /// </summary> /// <param name="context">The context to create the scope for</param> public IeJsScope(IeJsContext context) { _disposedFlag = new StatedFlag(); _previousContext = IeJsContext.Current; IeJsContext.Current = context; }
/// <summary> /// Initializes a new instance of the <see cref="EdgeJsScope"/> struct /// </summary> /// <param name="context">The context to create the scope for</param> public EdgeJsScope(EdgeJsContext context) { _disposedFlag = new StatedFlag(); _previousContext = EdgeJsContext.Current; EdgeJsContext.Current = context; }