flush filestream

This commit is contained in:
rootdarkarchon
2024-01-18 21:17:11 +01:00
parent 9f82f8a25a
commit 7f04db2c13

View File

@@ -80,6 +80,7 @@ public sealed class CachedFileProvider : IDisposable
{
await fileStream.WriteAsync(buffer.AsMemory(0, bytesRead)).ConfigureAwait(false);
}
await fileStream.FlushAsync().ConfigureAwait(false);
await fileStream.DisposeAsync().ConfigureAwait(false);
File.Move(tempFileName, fileName, true);