mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-08 16:05:50 +00:00
ImageFileCache FileShare
This commit is contained in:
parent
16d477a31d
commit
e0eb50b7da
4 changed files with 8 additions and 7 deletions
|
|
@ -326,7 +326,7 @@ namespace MapControl.Caching
|
|||
|
||||
private static byte[] ReadAllBytes(FileInfo file)
|
||||
{
|
||||
using var stream = file.OpenRead();
|
||||
using var stream = file.Open(FileMode.Open, FileAccess.Read, FileShare.Read);
|
||||
var buffer = new byte[stream.Length];
|
||||
var offset = 0;
|
||||
|
||||
|
|
@ -340,7 +340,7 @@ namespace MapControl.Caching
|
|||
|
||||
private static async Task<byte[]> ReadAllBytes(FileInfo file, CancellationToken token)
|
||||
{
|
||||
using var stream = file.OpenRead();
|
||||
using var stream = file.Open(FileMode.Open, FileAccess.Read, FileShare.Read);
|
||||
var buffer = new byte[stream.Length];
|
||||
var offset = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue