ClientStreamingServerMethodTRequest, TResponse Delegate |
Server-side handler for client streaming call.
Namespace: Grpc.CoreAssembly: Grpc.Core (in Grpc.Core.dll) Version: 0.7.0.0
Syntaxpublic delegate Task<TResponse> ClientStreamingServerMethod<TRequest, TResponse>(
IAsyncStreamReader<TRequest> requestStream,
ServerCallContext context
)
where TRequest : class
where TResponse : class
Public Delegate Function ClientStreamingServerMethod(Of TRequest As Class, TResponse As Class) (
requestStream As IAsyncStreamReader(Of TRequest),
context As ServerCallContext
) As Task(Of TResponse)
generic<typename TRequest, typename TResponse>
where TRequest : ref class
where TResponse : ref class
public delegate Task<TResponse>^ ClientStreamingServerMethod(
IAsyncStreamReader<TRequest>^ requestStream,
ServerCallContext^ context
)
type ClientStreamingServerMethod =
delegate of
requestStream : IAsyncStreamReader<'TRequest> *
context : ServerCallContext -> Task<'TResponse>
Parameters
- requestStream
- Type: Grpc.CoreIAsyncStreamReaderTRequest
- context
- Type: Grpc.CoreServerCallContext
Type Parameters
- TRequest
- Request message type for this method.
- TResponse
- Response message type for this method.
Return Value
Type:
TaskTResponse
See Also