Skip to content

Commit

Permalink
Update src/Foundatio.AzureStorage/Storage/AzureFileStorage.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
niemyjski authored Oct 1, 2024
1 parent d35cd5e commit 2304276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Foundatio.AzureStorage/Storage/AzureFileStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public async Task<Stream> GetFileStreamAsync(string path, StreamMode streamMode,
return streamMode switch {
StreamMode.Read => await blockBlob.OpenReadAsync(null, null, null, cancellationToken).AnyContext(),
StreamMode.Write => await blockBlob.OpenWriteAsync(null, null, null, cancellationToken).AnyContext(),
_ => null
_ => throw new NotSupportedException($"Stream mode {streamMode} is not supported.");

Check failure on line 70 in src/Foundatio.AzureStorage/Storage/AzureFileStorage.cs

View workflow job for this annotation

GitHub Actions / build / build

Syntax error, ',' expected

Check failure on line 70 in src/Foundatio.AzureStorage/Storage/AzureFileStorage.cs

View workflow job for this annotation

GitHub Actions / build / build

Syntax error, ',' expected
};
} catch (StorageException ex) when (ex is { RequestInformation.HttpStatusCode: 404}) {
_logger.LogDebug(ex, "Unable to get file stream for {Path}: File Not Found", normalizedPath);
Expand Down

0 comments on commit 2304276

Please sign in to comment.