public async ValueTask DisposeAsync() { if (IsDisposed) return; IsDisposed = true; await _dispatcher.QueueForCompletion(new SimpleMessagePumpAction(() => { fpdfview.FPDFBitmapDestroy(_pdfBitmap); })); }
public async ValueTask DisposeAsync() { if (_isDisposed) { return; } _isDisposed = true; await _dispatcher.QueueForCompletion(new SimpleMessagePumpAction(() => { fpdfview.FPDF_ClosePage(_pageInstance); })); }