| Channel Class |
Namespace: Grpc.Core
The Channel type exposes the following members.
| Name | Description | |
|---|---|---|
| Channel(String, ChannelCredentials) |
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.
| |
| Channel(String, ChannelCredentials, 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.
| |
| Channel(String, Int32, ChannelCredentials) |
Creates a channel that connects to a specific host and port.
| |
| Channel(String, Int32, ChannelCredentials, IEnumerableChannelOption) |
Creates a channel that connects to a specific host and port.
|
| Name | Description | |
|---|---|---|
| ResolvedTarget | Resolved address of the remote endpoint in URI format. | |
| ShutdownToken |
Returns a token that gets cancelled once ShutdownAsync is invoked.
| |
| State |
Gets current connectivity state of this channel.
After channel is has been shutdown, ChannelState.Shutdown will be returned.
| |
| Target | The original target used to create the channel. |
| Name | Description | |
|---|---|---|
| ConnectAsync |
Allows explicitly requesting channel to connect without starting an RPC.
Returned task completes once state Ready was seen. If the deadline is reached,
or channel enters the Shutdown state, the task is cancelled.
There is no need to call this explicitly unless your use case requires that.
Starting an RPC on a new channel will request connection implicitly.
| |
| Equals | (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ShutdownAsync |
Shuts down the channel cleanly. It is strongly recommended to shutdown
all previously created channels before exiting from the process.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) | |
| WaitForStateChangedAsync |
Returned tasks completes once channel state has become different from
given lastObservedState.
If deadline is reached or and error occurs, returned task is cancelled.
|