Updated gRPC services. (#23349)

Added a line about ServerCallContext
pull/23351/head
Poornima Nayar 2021-09-18 22:06:47 +01:00 committed by GitHub
parent e01d5b0c9b
commit 89ee0e2649
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -78,6 +78,8 @@ public class GreeterService : GreeterBase
}
```
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