Delegate UnaryServerMethod<TRequest, TResponse> (2.48.0)

public delegate Task<TResponse> UnaryServerMethod<TRequest, TResponse>(TRequest request, ServerCallContext context)
    where TRequest : class where TResponse : class;

Server-side handler for unary call.

Namespace

Grpc.Core

Assembly

Grpc.Core.Api.dll

Parameters

Name Description
request TRequest
context ServerCallContext

Returns

Type Description
Task<TResponse>

Type Parameters

Name Description
TRequest

Request message type for this method.

TResponse

Response message type for this method.