A gRPC server.
More...
|
| const int | PickUnusedPort = 0 |
| | Pass this value as port to have the server choose an unused listening port for you. More...
|
| |
| int Grpc.Core.Server.AddListeningPort |
( |
string |
host, |
|
|
int |
port |
|
) |
| |
|
inline |
Add a non-secure port on which server should listen. Only call this before Start().
- Returns
- The port on which server will be listening.
- Parameters
-
| host | the host |
| port | the port. If zero, an unused port is chosen automatically. |
| int Grpc.Core.Server.AddListeningPort |
( |
string |
host, |
|
|
int |
port, |
|
|
ServerCredentials |
credentials |
|
) |
| |
|
inline |
Add a non-secure port on which server should listen. Only call this before Start().
- Returns
- The port on which server will be listening.
- Parameters
-
| host | the host |
| port | the port. If zero, , an unused port is chosen automatically. |
Adds a service definition to the server. This is how you register handlers for a service with the server. Only call this before Start().
| async Task Grpc.Core.Server.ShutdownAsync |
( |
| ) |
|
|
inline |
Requests server shutdown and when there are no more calls being serviced, cleans up used resources. The returned task finishes when shutdown procedure is complete.
| const int Grpc.Core.Server.PickUnusedPort = 0 |
Pass this value as port to have the server choose an unused listening port for you.
| Task Grpc.Core.Server.ShutdownTask |
|
get |
To allow awaiting termination of the server.
The documentation for this class was generated from the following files:
- src/csharp/Grpc.Core/Server.cs
- src/cpp/server/server.cc