Click or drag to resize
ServerPort Constructor
Creates a new port on which server should listen.

Namespace: Grpc.Core
Assembly: Grpc.Core (in Grpc.Core.dll) Version: 0.7.0.0
Syntax
public ServerPort(
	string host,
	int port,
	ServerCredentials credentials
)

Parameters

host
Type: SystemString
the host
port
Type: SystemInt32
the port. If zero, an unused port is chosen automatically.
credentials
Type: Grpc.CoreServerCredentials
credentials to use to secure this port.

Return Value

Type: 
The port on which server will be listening.
See Also