Skip to content

Commit 98bc10d

Browse files
authored
0.9.5.1 release (#274)
* 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)
1 parent 984d784 commit 98bc10d

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

WindowsDevicePortalWrapper/WindowsDevicePortalWrapper.Shared/Core/AppFileExplorer.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using System;
88
using System.Collections.Generic;
99
using System.IO;
10+
using System.Net;
1011
using System.Runtime.Serialization;
1112
using System.Threading.Tasks;
1213

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

83+
filename = WebUtility.UrlEncode(filename);
8284
payload.Add("filename", filename);
8385

8486
Uri uri = Utilities.BuildEndpoint(
@@ -126,7 +128,7 @@ public async Task DeleteFileAsync(
126128
string packageFullName = null)
127129
{
128130
Dictionary<string, string> payload = this.BuildCommonFilePayload(knownFolderId, subPath, packageFullName);
129-
131+
filename = WebUtility.UrlEncode(filename);
130132
payload.Add("filename", filename);
131133

132134
await this.DeleteAsync(GetFileApi, Utilities.BuildQueryString(payload));

WindowsDevicePortalWrapper/WindowsDevicePortalWrapper.Shared/DevicePortal.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,17 @@ public partial class DevicePortal
5959
/// Device connection object.
6060
/// </summary>
6161
private IDevicePortalConnection deviceConnection;
62+
#if !WINDOWS_UWP
6263

64+
/// <summary>
65+
/// Initializes static members of the <see cref="DevicePortal" /> class.
66+
/// </summary>
67+
static DevicePortal()
68+
{
69+
System.Net.ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;
70+
}
71+
72+
#endif
6373
/// <summary>
6474
/// Initializes a new instance of the <see cref="DevicePortal" /> class.
6575
/// </summary>

WindowsDevicePortalWrapper/WindowsDevicePortalWrapper.UniversalWindows/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@
2929
// You can specify all the values or you can default the Build and Revision Numbers
3030
// by using the '*' as shown below:
3131
// [assembly: AssemblyVersion("1.0.*")]
32-
[assembly: AssemblyVersion("0.9.5.0")]
33-
[assembly: AssemblyFileVersion("0.9.5.0")]
32+
[assembly: AssemblyVersion("0.9.5.1")]
33+
[assembly: AssemblyFileVersion("0.9.5.1")]
3434
[assembly: ComVisible(false)]

WindowsDevicePortalWrapper/WindowsDevicePortalWrapper/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@
3737
// You can specify all the values or you can default the Build and Revision Numbers
3838
// by using the '*' as shown below:
3939
// [assembly: AssemblyVersion("1.0.*")]
40-
[assembly: AssemblyVersion("0.9.5.0")]
41-
[assembly: AssemblyFileVersion("0.9.5.0")]
40+
[assembly: AssemblyVersion("0.9.5.1")]
41+
[assembly: AssemblyFileVersion("0.9.5.1")]

0 commit comments

Comments
 (0)