mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 22:46:58 +00:00
Update package references
This commit is contained in:
parent
fc2425ac41
commit
d9c5455a83
12 changed files with 30 additions and 26 deletions
|
|
@ -94,7 +94,16 @@ namespace MapControl
|
|||
if (!responseMessage.Headers.TryGetValues("X-VE-Tile-Info", out IEnumerable<string> tileInfo) ||
|
||||
!tileInfo.Contains("no-tile"))
|
||||
{
|
||||
buffer = await ReadAsByteArrayAsync(responseMessage.Content, progress).ConfigureAwait(false);
|
||||
var content = responseMessage.Content;
|
||||
|
||||
if (progress != null && content.Headers.ContentLength.HasValue)
|
||||
{
|
||||
buffer = await ReadAsByteArrayAsync(content, progress).ConfigureAwait(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
buffer = await content.ReadAsByteArrayAsync().ConfigureAwait(false);
|
||||
}
|
||||
}
|
||||
|
||||
response = new HttpResponse(buffer, responseMessage.Headers.CacheControl?.MaxAge);
|
||||
|
|
@ -115,11 +124,6 @@ namespace MapControl
|
|||
|
||||
private static async Task<byte[]> ReadAsByteArrayAsync(HttpContent content, IProgress<double> progress)
|
||||
{
|
||||
if (progress == null || !content.Headers.ContentLength.HasValue)
|
||||
{
|
||||
return await content.ReadAsByteArrayAsync().ConfigureAwait(false);
|
||||
}
|
||||
|
||||
var length = (int)content.Headers.ContentLength.Value;
|
||||
var buffer = new byte[length];
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.2.230217.4" />
|
||||
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22621.755" />
|
||||
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.3.230724000" />
|
||||
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22621.756" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue