Bug fix for catching network related issues.
This commit is contained in:
Родитель
b86d3cdc63
Коммит
a89cac2bf8
|
@ -2,7 +2,7 @@
|
|||
<package xmlns="http://schemas.microsoft.com/packaging/2013/01/nuspec.xsd">
|
||||
<metadata>
|
||||
<id>BingMapsRESTToolkit</id>
|
||||
<version>1.0.3</version>
|
||||
<version>1.0.4</version>
|
||||
<title>Bing Maps REST Services Toolkit</title>
|
||||
<authors>Microsoft</authors>
|
||||
<owners>microsoft bingmaps</owners>
|
||||
|
|
14
CHANGELOG.md
14
CHANGELOG.md
|
@ -1,3 +1,15 @@
|
|||
## Version 1.0.4 - 2/16/2017 ##
|
||||
|
||||
* Added support for catching network related exceptions.
|
||||
|
||||
## Version 1.0.3 - 2/15/2017 ##
|
||||
|
||||
* Added Globalization support for coordinates.
|
||||
|
||||
## Version 1.0.2 - 2/8/2017 ##
|
||||
|
||||
* Removed DetailAddress class and replaced with the standard Address class.
|
||||
|
||||
## Version 1.0.1 - 1/30/2017 ##
|
||||
|
||||
* Added Imagery Providers to response classes.
|
||||
* Added Imagery Providers to response classes.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
![Bing Maps Logo](https://github.com/Microsoft/Bing-Maps-V8-TypeScript-Definitions/blob/master/images/BingMapsLogoTeal.png)
|
||||
|
||||
[![NuGet](https://img.shields.io/badge/NuGet-1.0.1-blue.svg)](https://www.nuget.org/packages/BingMapsRESTToolkit)
|
||||
[![NuGet](https://img.shields.io/badge/NuGet-1.0.4-blue.svg)](https://www.nuget.org/packages/BingMapsRESTToolkit)
|
||||
[![license](https://img.shields.io/badge/license-MIT-yellow.svg)](https://github.com/Microsoft/BingMapsRESTToolkit/blob/master/LICENSE.md)
|
||||
|
||||
# Bing Maps REST Toolkit for .NET #
|
||||
|
|
|
@ -68,6 +68,10 @@ namespace BingMapsRESTToolkit
|
|||
tcs.SetResult(reader.ReadToEnd());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
tcs.SetException(ex);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
@ -104,6 +108,10 @@ namespace BingMapsRESTToolkit
|
|||
{
|
||||
tcs.SetResult(CopyToMemoryStream(ex.Response.GetResponseStream()));
|
||||
}
|
||||
else
|
||||
{
|
||||
tcs.SetException(ex);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
@ -119,6 +127,7 @@ namespace BingMapsRESTToolkit
|
|||
/// </summary>
|
||||
/// <param name="url">URL to post data to.</param>
|
||||
/// <param name="data">String representation of data to be posted to service.</param>
|
||||
/// <param name="contentType">The content type of the data.</param>
|
||||
/// <returns>Response stream.</returns>
|
||||
public static Task<Stream> PostStringAsync(Uri url, string data, string contentType)
|
||||
{
|
||||
|
@ -167,6 +176,10 @@ namespace BingMapsRESTToolkit
|
|||
{
|
||||
tcs.SetResult(CopyToMemoryStream(ex.Response.GetResponseStream()));
|
||||
}
|
||||
else
|
||||
{
|
||||
tcs.SetException(ex);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
@ -180,6 +193,10 @@ namespace BingMapsRESTToolkit
|
|||
{
|
||||
tcs.SetResult(CopyToMemoryStream(ex.Response.GetResponseStream()));
|
||||
}
|
||||
else
|
||||
{
|
||||
tcs.SetException(ex);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
|
|
@ -26,5 +26,5 @@ using System.Runtime.InteropServices;
|
|||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.3.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.3.0")]
|
||||
[assembly: AssemblyVersion("1.0.4.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.4.0")]
|
||||
|
|
Загрузка…
Ссылка в новой задаче