aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/csharp/Grpc.Core/IAsyncStreamReader.cs
diff options
context:
space:
mode:
authorGravatar Tim Emiola <tbetbetbe@users.noreply.github.com>2015-05-20 18:11:31 -0700
committerGravatar Tim Emiola <tbetbetbe@users.noreply.github.com>2015-05-20 18:11:31 -0700
commite1c24fcd0cb885360bf85cdb2dbee7e31c30fd16 (patch)
tree1d9f95fc57ebf7688963fe617d4b129fb87ee20c /src/csharp/Grpc.Core/IAsyncStreamReader.cs
parent02accdb6e331a990e9a1db5c9f54efc02ee6c832 (diff)
parent7ca6179c666273c850e09f5ecbfc757d653c29ef (diff)
Merge pull request #1646 from jtattermusch/csharp_api_fixes
Incorporate feedback from API review: Use IAsyncEnumerator to represent async read stream
Diffstat (limited to 'src/csharp/Grpc.Core/IAsyncStreamReader.cs')
-rw-r--r--src/csharp/Grpc.Core/IAsyncStreamReader.cs8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/csharp/Grpc.Core/IAsyncStreamReader.cs b/src/csharp/Grpc.Core/IAsyncStreamReader.cs
index 699741cd05..95b674c018 100644
--- a/src/csharp/Grpc.Core/IAsyncStreamReader.cs
+++ b/src/csharp/Grpc.Core/IAsyncStreamReader.cs
@@ -43,13 +43,7 @@ namespace Grpc.Core
/// A stream of messages to be read.
/// </summary>
/// <typeparam name="T"></typeparam>
- public interface IAsyncStreamReader<T>
- where T : class
+ public interface IAsyncStreamReader<TResponse> : IAsyncEnumerator<TResponse>
{
- /// <summary>
- /// Reads a single message. Returns null if the last message was already read.
- /// A following read can only be started when the previous one finishes.
- /// </summary>
- Task<T> ReadNext();
}
}