diff --git a/aspnetcore/grpc/services.md b/aspnetcore/grpc/services.md index c0f9deeadc..b1c838a3d4 100644 --- a/aspnetcore/grpc/services.md +++ b/aspnetcore/grpc/services.md @@ -82,10 +82,7 @@ The `ServerCallContext` gives the context for a server-side call. The service implementation is registered with the app. If the service is hosted by ASP.NET Core gRPC, it should be added to the routing pipeline with the `MapGrpcService` method. ```csharp -app.UseEndpoints(endpoints => -{ - endpoints.MapGrpcService(); -}); +app.MapGrpcService(); ``` See for more information.