Esempio n. 1
0
        /// <summary>
        /// Disposes the instance. This method is not thread-safe. It should only be called after all other calls to this instance's methods have returned.
        /// </summary>
        /// <param name="disposing">True if the object is disposing or false if it is finalizing.</param>
        protected virtual void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }

            if (disposing)
            {
                _aliasesSemaphore?.Dispose();
            }

            _nodeJSService?.Dispose(); // _nodeJSService wraps a NodeJS process (an unmanaged resource)
            _disposed = true;
        }
Esempio n. 2
0
 public override void Dispose()
 {
     NodeServices?.Dispose();
 }
Esempio n. 3
0
 public void Dispose()
 {
     _renderer?.Dispose();
     _nodeServices?.Dispose();
 }