/// <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; }
public override void Dispose() { NodeServices?.Dispose(); }
public void Dispose() { _renderer?.Dispose(); _nodeServices?.Dispose(); }