Delegate DuplexStreamingServerMethod<TRequest, TResponse> (2.48.0)

public delegate Task DuplexStreamingServerMethod<TRequest, TResponse>(IAsyncStreamReader<TRequest> requestStream, IServerStreamWriter<TResponse> responseStream, ServerCallContext context)
    where TRequest : class where TResponse : class;

Server-side handler for bidi streaming call.

Namespace

Grpc.Core

Assembly

Grpc.Core.Api.dll

Parameters

Name Description
requestStream IAsyncStreamReader<TRequest>
responseStream IServerStreamWriter<TResponse>
context ServerCallContext

Returns

Type Description
Task

Type Parameters

Name Description
TRequest

Request message type for this method.

TResponse

Response message type for this method.