Skip to content

Commit e38eb90

Browse files
committed
Fix build on netstandard1.3
1 parent 4572bdc commit e38eb90

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/Renci.SshNet/Common/Pipe.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
namespace Renci.SshNet.Common
22
{
33
using System;
4-
using System.IO;
54

65
/// <summary>
76
/// A generic pipe to pass through data.
@@ -14,13 +13,13 @@ internal class Pipe : IDisposable
1413
/// Gets the input stream.
1514
/// </summary>
1615
/// <value>The input stream.</value>
17-
public Stream InputStream { get; private set; }
16+
public PipeInputStream InputStream { get; private set; }
1817

1918
/// <summary>
2019
/// Gets the output stream.
2120
/// </summary>
2221
/// <value>The output stream.</value>
23-
public Stream OutputStream { get; private set; }
22+
public PipeOutputStream OutputStream { get; private set; }
2423

2524
public Pipe()
2625
{

src/Renci.SshNet/Common/PipeOutputStream.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,11 @@ public override long Position
8383
}
8484
}
8585

86+
#if NETSTANDARD1_3
87+
public void Close()
88+
#else
8689
public override void Close()
90+
#endif
8791
{
8892
if (!_queue.IsAddingCompleted)
8993
_queue.CompleteAdding();

0 commit comments

Comments
 (0)