public class Tether.TetherClient : ClientBase<Tether.TetherClient>
Reference documentation and code samples for the Apigee Connect v1 API class 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 |
CallInvoker The callInvoker to use to make remote calls. |
TetherClient(ChannelBase)
public TetherClient(ChannelBase channel)
Creates a new client for Tether
Parameter | |
---|---|
Name | Description |
channel |
ChannelBase The channel to use to make remote calls. |
TetherClient(ClientBaseConfiguration)
protected TetherClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration |
ClientBaseClientBaseConfiguration The 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 |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncDuplexStreamingCallEgressResponseEgressRequest |
The call object. |
Egress(Metadata, DateTime?, CancellationToken)
public virtual AsyncDuplexStreamingCall<EgressResponse, EgressRequest> Egress(Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)
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 |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncDuplexStreamingCallEgressResponseEgressRequest |
The call object. |
NewInstance(ClientBaseConfiguration)
protected override Tether.TetherClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Creates a new instance of client from given ClientBaseConfiguration
.
Parameter | |
---|---|
Name | Description |
configuration |
ClientBaseClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
TetherTetherClient |