Click or drag to resize
ServerServerPortCollectionAdd Method (String, Int32, ServerCredentials)
Adds a new port on which server should listen.

Return Value

Type: Int32
The port on which server will be listening.

Namespace: Grpc.Core
Assembly: Grpc.Core (in Grpc.Core.dll) Version: 0.6.1.0
Syntax
public int Add(
	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: Int32
See Also