Delegate Interceptor.AsyncServerStreamingCallContinuation<TRequest, TResponse> (2.48.0)

public delegate AsyncServerStreamingCall<TResponse> AsyncServerStreamingCallContinuation<TRequest, TResponse>(TRequest request, ClientInterceptorContext<TRequest, TResponse> context)
    where TRequest : class where TResponse : class;

Represents a continuation for intercepting asynchronous server-streaming invocations. A delegate of this type is passed to the AsyncServerStreamingCall method when an outgoing invocation is being intercepted and calling the delegate will invoke the next interceptor in the chain, or the underlying call invoker if called from the last interceptor. The interceptor is allowed to call it zero, one, or multiple times, passing it the appropriate request value and context as it sees fit.

Namespace

Grpc.Core.Interceptors

Assembly

Grpc.Core.Api.dll

Parameters

NameDescription
requestTRequest

The request value to continue the invocation with.

contextClientInterceptorContext<TRequest, TResponse>

The ClientInterceptorContext<TRequest, TResponse> instance to pass to the next step in the invocation process.

Returns

TypeDescription
AsyncServerStreamingCall<TResponse>

An instance of AsyncServerStreamingCall<TResponse> representing an asynchronous invocation of a server-streaming RPC. The interceptor can choose to return the same object returned from the continuation delegate or an arbitrarily constructed instance as it sees fit.

Type Parameters

NameDescription
TRequest

Request message type for this invocation.

TResponse

Response message type for this invocation.