mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Update ImageLoader.cs
This commit is contained in:
parent
caf47209a3
commit
d3482c2e9f
|
|
@ -109,7 +109,7 @@ namespace MapControl
|
|||
|
||||
if (progress != null && content.Headers.ContentLength.HasValue)
|
||||
{
|
||||
buffer = await ReadAsByteArrayAsync(content, progress).ConfigureAwait(false);
|
||||
buffer = await ReadAsByteArray(content, progress).ConfigureAwait(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -133,7 +133,7 @@ namespace MapControl
|
|||
return response;
|
||||
}
|
||||
|
||||
private static async Task<byte[]> ReadAsByteArrayAsync(HttpContent content, IProgress<double> progress)
|
||||
private static async Task<byte[]> ReadAsByteArray(HttpContent content, IProgress<double> progress)
|
||||
{
|
||||
var length = (int)content.Headers.ContentLength.Value;
|
||||
var buffer = new byte[length];
|
||||
|
|
|
|||
Loading…
Reference in a new issue