Added StreamFormat property to StreamPipeDataWriter

This commit is contained in:
Максим Багрянцев 2020-04-28 18:43:54 +03:00
parent b7099f6709
commit 6845fe3bc7

View file

@ -12,6 +12,7 @@ public class StreamPipeDataWriter : IPipeDataWriter
{
public System.IO.Stream Source { get; private set; }
public int BlockSize { get; set; } = 4096;
public string StreamFormat { get; set; } = string.Empty;
public StreamPipeDataWriter(System.IO.Stream stream)
{
@ -40,7 +41,7 @@ public async Task WriteDataAsync(System.IO.Stream pipe)
public string GetFormat()
{
return "";
return StreamFormat;
}
}
}