Update services.md

pull/28542/head
Christian Skovholm 2023-03-02 17:08:27 +01:00 committed by GitHub
parent e1b46efe30
commit 1d262ec45b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 4 deletions

View File

@ -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<GreeterService>();
});
app.MapGrpcService<GreeterService>();
```
See <xref:grpc/aspnetcore> for more information.