You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
usingvarstream= ...// a Stream here
await blobStorage.WriteAsync("path_here",stream);
OR:
varstream= ...// a Stream here
await blobStorage.WriteAsync("path_here",stream);awaitstream.DisposeAsync();
OR:
varbytes= ...// a byte array
await blobStorage.WriteAsync("path_here",bytes);
Occasionally a System.ObjectDisposedException: 'Cannot access a closed file.' will be raised.
This code path is being called by a background processor that utilises a worker pool, the idea being that files for writing are enqueued as tasks, and the pool will wait for all tasks to complete; so I'm wondering if there's a threading / async issue occurring here?
The text was updated successfully, but these errors were encountered:
Sometimes when doing the following:
OR:
OR:
Occasionally a System.ObjectDisposedException: 'Cannot access a closed file.' will be raised.
This code path is being called by a background processor that utilises a worker pool, the idea being that files for writing are enqueued as tasks, and the pool will wait for all tasks to complete; so I'm wondering if there's a threading / async issue occurring here?
The text was updated successfully, but these errors were encountered: