コード例 #1
0
        /// <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;
        }
コード例 #2
0
 /// <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;
 }
コード例 #3
0
 /// <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;
 }
コード例 #4
0
 /// <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;
 }