From 322bbe00f77772ba6b0e25759de95dd517b6014c Mon Sep 17 00:00:00 2001 From: vnugent Date: Sat, 14 Sep 2024 15:43:45 -0400 Subject: build: Testing updates and easier dev-testing --- lib/Plugins.Essentials/src/EventProcessor.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/Plugins.Essentials/src') diff --git a/lib/Plugins.Essentials/src/EventProcessor.cs b/lib/Plugins.Essentials/src/EventProcessor.cs index 908ad07..c3082a1 100644 --- a/lib/Plugins.Essentials/src/EventProcessor.cs +++ b/lib/Plugins.Essentials/src/EventProcessor.cs @@ -416,8 +416,12 @@ namespace VNLib.Plugins.Essentials //set last modified time as the files last write time entity.Server.LastModified(fileLastModified); + //Open the file handle directly, reading will always be sequentially read and async + +#pragma warning disable CA2000 // Dispose objects before losing scope DirectFileStream dfs = DirectFileStream.Open(filename); +#pragma warning restore CA2000 // Dispose objects before losing scope long endOffset = checked((long)entity.Server.Range.End); long startOffset = checked((long)entity.Server.Range.Start); -- cgit