Channel Constructor (String, Int32, Credentials, IEnumerableChannelOption) |
Creates a channel that connects to a specific host and port.
Namespace: Grpc.CoreAssembly: Grpc.Core (in Grpc.Core.dll) Version: 0.7.0.0
Syntaxpublic Channel(
string host,
int port,
Credentials credentials,
IEnumerable<ChannelOption> options = null
)
Public Sub New (
host As String,
port As Integer,
credentials As Credentials,
Optional options As IEnumerable(Of ChannelOption) = Nothing
)
public:
Channel(
String^ host,
int port,
Credentials^ credentials,
IEnumerable<ChannelOption^>^ options = nullptr
)
new :
host : string *
port : int *
credentials : Credentials *
?options : IEnumerable<ChannelOption>
(* Defaults:
let _options = defaultArg options null
*)
-> Channel
Parameters
- host
- Type: SystemString
The name or IP address of the host. - port
- Type: SystemInt32
The port. - credentials
- Type: Grpc.CoreCredentials
Credentials to secure the channel. - options (Optional)
- Type: System.Collections.GenericIEnumerableChannelOption
Channel options.
See Also