Show / Hide Table of Contents

    Delegate DuplexStreamingServerMethod<TService, TRequest, TResponse>

    Server-side handler for a duplex streaming call.

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

    The service instance.

    IAsyncStreamReader<TRequest> input

    A that is used to read a stream of request messages.

    IServerStreamWriter<TResponse> output

    A that is used to write a stream of response messages.

    ServerCallContext serverCallContext

    The for the call.

    Returns
    Type Description
    Task

    A task that represents the completion of the call.

    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