Show / Hide Table of Contents

    Class GrpcEndpointRouteBuilderExtensions

    Provides extension methods for to add gRPC service endpoints.

    Inheritance
    System.Object
    GrpcEndpointRouteBuilderExtensions
    Namespace: Microsoft.AspNetCore.Builder
    Assembly: Grpc.AspNetCore.Server.dll
    Syntax
    public static class GrpcEndpointRouteBuilderExtensions : object

    Methods

    MapGrpcService<TService>(IEndpointRouteBuilder)

    Maps incoming requests to the specified TService type.

    Declaration
    public static GrpcServiceEndpointConventionBuilder MapGrpcService<TService>(this IEndpointRouteBuilder builder)
        where TService : class
    Parameters
    Type Name Description
    IEndpointRouteBuilder builder

    The to add the route to.

    Returns
    Type Description
    GrpcServiceEndpointConventionBuilder

    A GrpcServiceEndpointConventionBuilder for endpoints associated with the service.

    Type Parameters
    Name Description
    TService

    The service type to map requests to.

    Back to top Generated by DocFX