Example #1
0
 public void Dispose()
 {
     JavaScriptContext.Current = JavaScriptContext.Invalid;
     context = JavaScriptContext.Invalid;
     runtime.Dispose();
     Port.Util.ClearCache();
 }
Example #2
0
 public override void Cleanup()
 {
     engine_.Dispose();
     engine_ = null;
     runtime_.Dispose();
     runtime_ = null;
 }
Example #3
0
        void OnDestroy()
        {
            StopFileWatcher();

            Bridge.Stop();

            runtime.Dispose();
            instance = null;
        }
Example #4
0
        /// <summary>
        /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged
        /// resources.
        /// </summary>
        public void Dispose()
        {
            GC.SuppressFinalize(this);

            if (_initialized)
            {
                _engine.Dispose();
                _initialized = false;
            }
        }
 public async Task Cleanup()
 {
     await DispatchContainer.GlobalDispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
     {
         engine_.Dispose();
         engine_ = null;
         runtime_.Dispose();
         runtime_ = null;
     });
 }
        public void Dispose()
        {
            if (_isDisposing == false)
            {
                _jsRuntime.Dispose();
                _isDisposing = true;
            }

            return;
        }
Example #7
0
        public override void Cleanup()
        {
            dataView_   = null;
            typedArray_ = null;
            buffer_     = null;

            engine_.Dispose();
            engine_ = null;
            runtime_.Dispose();
            runtime_ = null;
        }
 public void Dispose()
 {
     if (context.IsValid)
     {
         context.Release();
     }
     if (runtime.IsValid)
     {
         runtime.Dispose();
     }
 }
Example #9
0
 public void Dispose()
 {
     if (!IsValid)
     {
         return;
     }
     try
     {
         if (_context.IsValid && JavaScriptContext.HasException)
         {
             JavaScriptContext.GetAndClearException();
         }
         _scope.Dispose();
         _runtime.Dispose();
     }
     catch (Exception)
     {
         // eat all
     }
 }
 /// <summary>
 /// Disposes the <see cref="ChakraJavaScriptExecutor"/> instance.
 /// </summary>
 public void Dispose()
 {
     JavaScriptContext.Current = JavaScriptContext.Invalid;
     _runtime.Dispose();
 }
 public void Dispose()
 {
     _runtime.Dispose();
 }