Show / Hide Table of Contents

    Delegate UnaryServerMethod<TService, TRequest, TResponse>

    Server-side handler for a unary call.

    Namespace: Grpc.AspNetCore.Server.Model
    Assembly: Grpc.AspNetCore.Server.dll
    Syntax
    public delegate Task<TResponse> UnaryServerMethod<TService, TRequest, TResponse>(TService service, TRequest request, ServerCallContext serverCallContext);
    Parameters
    Type Name Description
    TService service

    The service instance.

    TRequest request

    The request message.

    ServerCallContext serverCallContext

    The for the call.

    Returns
    Type Description
    Task<TResponse>

    A task that represents the completion of the call. The property returns a TResponse for the call response.

    Type Parameters
    Name Description
    TService

    Service type for this method.

    TRequest

    Request message type for this method.

    TResponse

    Response message type for this method.

    Back to top Generated by DocFX