Delegate UnaryServerMethod<TRequest, TResponse>
Server-side handler for unary call.
Namespace: Grpc.Core
Assembly: Grpc.Core.Api.dll
Syntax
public delegate Task<TResponse> UnaryServerMethod<TRequest, TResponse>(TRequest request, ServerCallContext context)
where TRequest : class where TResponse : class;
Parameters
Type | Name | Description |
---|---|---|
TRequest | request | |
ServerCallContext | context |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResponse> |
Type Parameters
Name | Description |
---|---|
TRequest | Request message type for this method. |
TResponse | Response message type for this method. |