Skip to content

Commit 880080a

Browse files
committed
Override Read methods in PeekableStreamReader to avoid unpredicted behaviour (#183)
Override Read methods in PeekableStreamReader to avoid unpredicted behaviour (#183)
1 parent ba12b6a commit 880080a

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

src/KubernetesClient/WatcherDelegatingHandler.cs

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System;
12
using System.Collections.Generic;
23
using System.IO;
34
using System.Linq;
@@ -97,6 +98,36 @@ public async Task<string> PeekLineAsync()
9798
_buffer.Enqueue(line);
9899
return line;
99100
}
101+
102+
public override int Read()
103+
{
104+
throw new NotImplementedException();
105+
}
106+
107+
public override int Read(char[] buffer, int index, int count)
108+
{
109+
throw new NotImplementedException();
110+
}
111+
public override Task<int> ReadAsync(char[] buffer, int index, int count)
112+
{
113+
throw new NotImplementedException();
114+
}
115+
public override int ReadBlock(char[] buffer, int index, int count)
116+
{
117+
throw new NotImplementedException();
118+
}
119+
public override Task<int> ReadBlockAsync(char[] buffer, int index, int count)
120+
{
121+
throw new NotImplementedException();
122+
}
123+
public override string ReadToEnd()
124+
{
125+
throw new NotImplementedException();
126+
}
127+
public override Task<string> ReadToEndAsync()
128+
{
129+
throw new NotImplementedException();
130+
}
100131
}
101132
}
102133
}

0 commit comments

Comments
 (0)