Exemple #1
0
        /// <summary>
        /// Creates a instance of JS scope
        /// </summary>
        /// <returns>Instance of JS scope</returns>
        private JsScope CreateJsScope()
        {
            if (_jsRuntime.Disabled)
            {
                _jsRuntime.Disabled = false;
            }

            var jsScope = new JsScope(_jsContext);

            JsRuntime.SetPromiseContinuationCallback(_promiseContinuationCallback, IntPtr.Zero);

            return(jsScope);
        }