Click or drag to resize
Channel Class
Represents a gRPC channel. Channels are an abstraction of long-lived connections to remote servers. More client objects can reuse the same channel. Creating a channel is an expensive operation compared to invoking a remote call so in general you should reuse a single channel for as many calls as possible.
Inheritance Hierarchy
SystemObject
  Grpc.CoreChannel

Namespace: Grpc.Core
Assembly: Grpc.Core (in Grpc.Core.dll) Version: 0.6.1.0
Syntax
public class Channel

The Channel type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyResolvedTarget
Resolved address of the remote endpoint in URI format.
Public propertyState
Gets current connectivity state of this channel.
Public propertyTarget
The original target used to create the channel.
Top
Methods
  NameDescription
Public methodConnectAsync
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 FatalFailure 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.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodShutdownAsync
Waits until there are no more active calls for this channel and then cleans up resources used by this channel.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWaitForStateChangedAsync
Returned tasks completes once channel state has become different from given lastObservedState. If deadline is reached or and error occurs, returned task is cancelled.
Top
See Also