ServerServerPortCollectionAdd Method (ServerPort) |
Adds a new port on which server should listen.
Only call this before Start().
Return Value
Type:
Int32The port on which server will be listening.
Namespace: Grpc.CoreAssembly: Grpc.Core (in Grpc.Core.dll) Version: 0.7.0.0
Syntaxpublic int Add(
ServerPort serverPort
)
Public Function Add (
serverPort As ServerPort
) As Integer
public:
int Add(
ServerPort^ serverPort
)
member Add :
serverPort : ServerPort -> int
Parameters
- serverPort
- Type: Grpc.CoreServerPort
[Missing <param name="serverPort"/> documentation for "M:Grpc.Core.Server.ServerPortCollection.Add(Grpc.Core.ServerPort)"]
Return Value
Type:
Int32
See Also