public class ServerStreamingBase<TResponse>
Base class for server streaming RPC methods.
Namespace
GoogleGoogle.ApiGaxGrpcAssembly
Google.Api.Gax.Grpc.dll
Type Parameter | |
---|---|
Name | Description |
TResponse | RPC streaming response type |
Properties
GrpcCall
public virtual AsyncServerStreamingCall<TResponse> GrpcCall { get; }
The underlying gRPC duplex streaming call.
Property Value | |
---|---|
Type | Description |
AsyncServerStreamingCall<> |
Methods
GetResponseStream()
public virtual AsyncResponseStream<TResponse> GetResponseStream()
Async stream to read streaming responses, exposed as an async sequence. The default implementation will use GrpcCall to extract a response stream, and adapt it to AsyncResponseStream<TResponse>.
Returns | |
---|---|
Type | Description |
AsyncResponseStream |
If this method is called more than once, all the returned enumerators will be enumerating over the same underlying response stream, which may cause confusion. Additionally, the sequence returned by this method can only be iterated over a single time. Attempting to iterate more than once will cause an InvalidOperationException.