Creates a new port on which server should listen.
Namespace: Grpc.CoreAssembly: Grpc.Core (in Grpc.Core.dll) Version: 0.6.1.0
Syntaxpublic ServerPort(
string host,
int port,
ServerCredentials credentials
)
Public Sub New (
host As String,
port As Integer,
credentials As ServerCredentials
)
public:
ServerPort(
String^ host,
int port,
ServerCredentials^ credentials
)
new :
host : string *
port : int *
credentials : ServerCredentials -> ServerPort
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