We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
fileApiHelperTask
1 parent b881c8d commit 4c4b72dCopy full SHA for 4c4b72d
src/KristofferStrube.Blazor.FileAPI/FileReader.cs
@@ -276,4 +276,16 @@ public async Task InvokeOnLoadEndAsync(IJSObjectReference jsProgressEvent)
276
277
await OnLoadEnd.Invoke(new ProgressEvent(JSRuntime, jsProgressEvent, new() { DisposesJSReference = true }));
278
}
279
+
280
+ /// <inheritdoc/>
281
+ public new async ValueTask DisposeAsync()
282
+ {
283
+ if (fileApiHelperTask.IsValueCreated)
284
285
+ IJSObjectReference module = await helperTask.Value;
286
+ await module.DisposeAsync();
287
+ }
288
+ await base.DisposeAsync();
289
+ GC.SuppressFinalize(this);
290
291
0 commit comments