From efe5cd212073d4050dfe440327f8b3ad1e1046d5 Mon Sep 17 00:00:00 2001 From: Blake Niemyjski Date: Fri, 5 Jan 2024 14:15:59 -0600 Subject: [PATCH] Fixed scope storage missing stream mode --- src/Foundatio/Storage/ScopedFileStorage.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Foundatio/Storage/ScopedFileStorage.cs b/src/Foundatio/Storage/ScopedFileStorage.cs index 8964e9a8..43f6fc03 100644 --- a/src/Foundatio/Storage/ScopedFileStorage.cs +++ b/src/Foundatio/Storage/ScopedFileStorage.cs @@ -32,7 +32,7 @@ public Task GetFileStreamAsync(string path, StreamMode streamMode, Cance if (String.IsNullOrEmpty(path)) throw new ArgumentNullException(nameof(path)); - return UnscopedStorage.GetFileStreamAsync(String.Concat(_pathPrefix, path), cancellationToken); + return UnscopedStorage.GetFileStreamAsync(String.Concat(_pathPrefix, path), streamMode, cancellationToken); } public async Task GetFileInfoAsync(string path) @@ -126,7 +126,7 @@ private async Task NextPage(PagedFileListResult result) Success = success, HasMore = result.HasMore, Files = result.Files, - NextPageFunc = s => NextPage(result) + NextPageFunc = _ => NextPage(result) }; }