Class GrpcEndpointRouteBuilderExtensions
Provides extension methods for
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 |
Returns
| Type | Description |
|---|---|
| GrpcServiceEndpointConventionBuilder | A GrpcServiceEndpointConventionBuilder for endpoints associated with the service. |
Type Parameters
| Name | Description |
|---|---|
| TService | The service type to map requests to. |