public class TetherClient : ClientBase<Tether.TetherClient>Client for Tether
Namespace
Google.Cloud.ApigeeConnect.V1Assembly
Google.Cloud.ApigeeConnect.V1.dll
Constructors
TetherClient()
protected TetherClient()Protected parameterless constructor to allow creation of test doubles.
TetherClient(CallInvoker)
public TetherClient(CallInvoker callInvoker)Creates a new client for Tether that uses a custom CallInvoker.
| Parameter | |
|---|---|
| Name | Description |
callInvoker |
CallInvokerThe callInvoker to use to make remote calls. |
TetherClient(ChannelBase)
public TetherClient(ChannelBase channel)Creates a new client for Tether
| Parameter | |
|---|---|
| Name | Description |
channel |
ChannelBaseThe channel to use to make remote calls. |
TetherClient(ClientBase.ClientBaseConfiguration)
protected TetherClient(ClientBase.ClientBaseConfiguration configuration)Protected constructor to allow creation of configured clients.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBase.ClientBaseConfigurationThe client configuration. |
Methods
Egress(CallOptions)
public virtual AsyncDuplexStreamingCall<EgressResponse, EgressRequest> Egress(CallOptions options)Egress streams egress requests and responses. Logically, this is not actually a streaming request, but uses streaming as a mechanism to flip the client-server relationship of gRPC so that the server can act as a client. The listener, the RPC server, accepts connections from the dialer, the RPC client. The listener streams http requests and the dialer streams http responses.
| Parameter | |
|---|---|
| Name | Description |
options |
CallOptionsThe options for the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncDuplexStreamingCall<EgressResponse, EgressRequest> |
The call object. |
Egress(Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncDuplexStreamingCall<EgressResponse, EgressRequest> Egress(Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))Egress streams egress requests and responses. Logically, this is not actually a streaming request, but uses streaming as a mechanism to flip the client-server relationship of gRPC so that the server can act as a client. The listener, the RPC server, accepts connections from the dialer, the RPC client. The listener streams http requests and the dialer streams http responses.
| Parameters | |
|---|---|
| Name | Description |
headers |
MetadataThe initial metadata to send with the call. This parameter is optional. |
deadline |
Nullable<DateTime>An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationTokenAn optional token for canceling the call. |
| Returns | |
|---|---|
| Type | Description |
AsyncDuplexStreamingCall<EgressResponse, EgressRequest> |
The call object. |
NewInstance(ClientBase.ClientBaseConfiguration)
protected override Tether.TetherClient NewInstance(ClientBase.ClientBaseConfiguration configuration)Creates a new instance of client from given ClientBaseConfiguration.
| Parameter | |
|---|---|
| Name | Description |
configuration |
ClientBase.ClientBaseConfiguration |
| Returns | |
|---|---|
| Type | Description |
Tether.TetherClient |
|