Skip to content

Commit

Permalink
0.9.5.1 release (#274)
Browse files Browse the repository at this point in the history
* Make generic Stream REST APIs public as well. (#258)
* URL Encode the File Explorer Delete/Get API. (#262)
* Ensure that TLS 1.1 and 1.2 are enabled for .NET. (#272)
Thanks!
* Bump version a bit for Nuget (#273)
  • Loading branch information
hpsin authored Nov 15, 2017
1 parent 984d784 commit 98bc10d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Runtime.Serialization;
using System.Threading.Tasks;

Expand Down Expand Up @@ -79,6 +80,7 @@ public async Task<Stream> GetFileAsync(
{
Dictionary<string, string> payload = this.BuildCommonFilePayload(knownFolderId, subPath, packageFullName);

filename = WebUtility.UrlEncode(filename);
payload.Add("filename", filename);

Uri uri = Utilities.BuildEndpoint(
Expand Down Expand Up @@ -126,7 +128,7 @@ public async Task DeleteFileAsync(
string packageFullName = null)
{
Dictionary<string, string> payload = this.BuildCommonFilePayload(knownFolderId, subPath, packageFullName);

filename = WebUtility.UrlEncode(filename);
payload.Add("filename", filename);

await this.DeleteAsync(GetFileApi, Utilities.BuildQueryString(payload));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,17 @@ public partial class DevicePortal
/// Device connection object.
/// </summary>
private IDevicePortalConnection deviceConnection;
#if !WINDOWS_UWP

/// <summary>
/// Initializes static members of the <see cref="DevicePortal" /> class.
/// </summary>
static DevicePortal()
{
System.Net.ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;
}

#endif
/// <summary>
/// Initializes a new instance of the <see cref="DevicePortal" /> class.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
// 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("0.9.5.0")]
[assembly: AssemblyFileVersion("0.9.5.0")]
[assembly: AssemblyVersion("0.9.5.1")]
[assembly: AssemblyFileVersion("0.9.5.1")]
[assembly: ComVisible(false)]
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@
// 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("0.9.5.0")]
[assembly: AssemblyFileVersion("0.9.5.0")]
[assembly: AssemblyVersion("0.9.5.1")]
[assembly: AssemblyFileVersion("0.9.5.1")]

0 comments on commit 98bc10d

Please sign in to comment.