Unverified Commit 06b65c17 authored by Jason Williams's avatar Jason Williams Committed by GitHub
Browse files

Better app streaming and StyleCop fixes (#283)

* Refactored use of async. No tight while-loops but instead using await and continue on background threads.

* Remove use of .Wait() to avoid potential deadlocks. increase use of ConfigureAwait, and remove await where not needed

* Simplified async code. Instead of forwarding to tasks and have to switch to ui thread, it's easier to just await and continue on the same thread here.

* First stab at using a custom http multipart content to avoid large memory consumption when installing large files.

* Changed implementation to Explicit

* Use proper separation between attachments

* Resolve header ordering issue in .NET, and force non-quoted boundary

* Boundary fixes.

* Update last merge

* StyleCop fixups

* Added streaming improvements to xbox's loose deploy as well
parent fe135400
Loading
Loading
Loading
Loading
+824 −0

File added.

Preview size limit exceeded, changes collapsed.

+824 −0

File added.

Preview size limit exceeded, changes collapsed.

+0 −1
Original line number Diff line number Diff line
@@ -78,7 +78,6 @@
    </ProjectReference>
  </ItemGroup>
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  <Import Project="$(StyleCopTargetsDir)StyleCop.targets" Condition="'$(StyleCopTargetsDir)' != ''" />
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
       Other similar extension points exist, see Microsoft.Common.targets.
  <Target Name="BeforeBuild">
+0 −1
Original line number Diff line number Diff line
@@ -59,7 +59,6 @@
    </ProjectReference>
  </ItemGroup>
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  <Import Project="$(StyleCopTargetsDir)StyleCop.targets" Condition="'$(StyleCopTargetsDir)' != ''"/>
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
       Other similar extension points exist, see Microsoft.Common.targets.
  <Target Name="BeforeBuild">
+3 −1
Original line number Diff line number Diff line
@@ -60,6 +60,9 @@
    </Otherwise>
  </Choose>
  <ItemGroup>
    <Compile Include="..\WindowsDevicePortalWrapper\HttpRest\HttpMultipartFileContent.cs">
      <Link>WDPMockImplementations\HttpMultipartFileContent.cs</Link>
    </Compile>
    <Compile Include="BaseTests.cs" />
    <Compile Include="Core\AppFileExplorerTests.cs" />
    <Compile Include="Core\WindowsErrorReportingTests.cs" />
@@ -427,7 +430,6 @@
  <Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
  <Import Project="..\WindowsDevicePortalWrapper.Shared\WindowsDevicePortalWrapper.Shared.projitems" Label="Shared" />
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  <Import Project="$(StyleCopTargetsDir)StyleCop.targets" Condition="'$(StyleCopTargetsDir)' != ''" />
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
       Other similar extension points exist, see Microsoft.Common.targets.
  <Target Name="BeforeBuild">
Loading