We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76293a6 commit 50a472cCopy full SHA for 50a472c
1 file changed
src/ServiceStack.Text/PclExport.cs
@@ -11,6 +11,7 @@
11
using System.Runtime.Serialization;
12
using System.Text;
13
using System.Text.RegularExpressions;
14
+using System.Threading.Tasks;
15
using ServiceStack.Text;
16
using ServiceStack.Text.Common;
17
@@ -472,6 +473,12 @@ public virtual string GetStackTrace()
472
473
{
474
return null;
475
}
476
+
477
+ public virtual Task WriteAndFlushAsync(Stream stream, byte[] bytes)
478
+ {
479
+ return stream.WriteAsync(bytes, 0, bytes.Length)
480
+ .ContinueWith(t => stream.FlushAsync());
481
+ }
482
483
484
0 commit comments