Class ServerStreamingBase<TResponse> (4.3.1)

public class ServerStreamingBase<TResponse>

Base class for server streaming RPC methods.

Inheritance

object > ServerStreamingBase<TResponse>

Namespace

GoogleGoogle.ApiGaxGrpc

Assembly

Google.Api.Gax.Grpc.dll

Type Parameter

NameDescription
TResponse

RPC streaming response type

Properties

GrpcCall

public virtual AsyncServerStreamingCall<TResponse> GrpcCall { get; }

The underlying gRPC duplex streaming call.

Property Value
TypeDescription
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
TypeDescription
AsyncResponseStream
Remarks

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.