Channel Constructor (String, Credentials, IEnumerableChannelOption) |
Creates a channel that connects to a specific host.
Port will default to 80 for an unsecure channel and to 443 for a secure channel.
Namespace: Grpc.CoreAssembly: Grpc.Core (in Grpc.Core.dll) Version: 0.7.0.0
Syntaxpublic Channel(
string target,
Credentials credentials,
IEnumerable<ChannelOption> options = null
)
Public Sub New (
target As String,
credentials As Credentials,
Optional options As IEnumerable(Of ChannelOption) = Nothing
)
public:
Channel(
String^ target,
Credentials^ credentials,
IEnumerable<ChannelOption^>^ options = nullptr
)
new :
target : string *
credentials : Credentials *
?options : IEnumerable<ChannelOption>
(* Defaults:
let _options = defaultArg options null
*)
-> Channel
Parameters
- target
- Type: SystemString
Target of the channel. - credentials
- Type: Grpc.CoreCredentials
Credentials to secure the channel. - options (Optional)
- Type: System.Collections.GenericIEnumerableChannelOption
Channel options.
See Also