We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50a472c commit 1ffb0d2Copy full SHA for 1ffb0d2
1 file changed
src/ServiceStack.Text/PclExport.cs
@@ -476,8 +476,13 @@ public virtual string GetStackTrace()
476
477
public virtual Task WriteAndFlushAsync(Stream stream, byte[] bytes)
478
{
479
+#if !SL5
480
return stream.WriteAsync(bytes, 0, bytes.Length)
481
.ContinueWith(t => stream.FlushAsync());
482
+#elif
483
+ stream.Write(bytes, 0, bytes.Length);
484
+ stream.Flush();
485
+#endif
486
}
487
488
0 commit comments