dotnet/Documentation/compatibility/winrt-stream-adapters-no-lo...

798 B

WinRT stream adapters no long call FlushAsync automatically on close

Scope

Transparent

Version Introduced

4.5.1

Source Analyzer Status

Not planned

Change Description

In Windows Store apps, Windows Runtime stream adapters no longer call the FlushAsync method from the Dispose method.

  • Quirked
  • Build-time break

This change should be transparent. Developers can restore the previous behavior by writing code like this:

using (var stream = GetWindowsRuntimeStream() as Stream) 
{ 
   // do something 
   await stream.FlushAsync();  
} 

Affected APIs

  • Not detectable via API analysis

Category

Core

More information