From 1d262ec45bdc8a64dc0c95fa6b1075457b22ddb2 Mon Sep 17 00:00:00 2001 From: Christian Skovholm Date: Thu, 2 Mar 2023 17:08:27 +0100 Subject: [PATCH] Update services.md --- aspnetcore/grpc/services.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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.