Apigee Connect v1 API - Class Tether.TetherClient (2.2.0)

public class Tether.TetherClient : ClientBase<Tether.TetherClient>

Reference documentation and code samples for the Apigee Connect v1 API class Tether.TetherClient.

Client for Tether

Inheritance

object > ClientBase > ClientBaseTetherTetherClient > Tether.TetherClient

Namespace

Google.Cloud.ApigeeConnect.V1

Assembly

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
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

TetherClient(ChannelBase)

public TetherClient(ChannelBase channel)

Creates a new client for Tether

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

TetherClient(ClientBaseConfiguration)

protected TetherClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

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
NameDescription
optionsCallOptions

The options for the call.

Returns
TypeDescription
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
NameDescription
headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncDuplexStreamingCallEgressResponseEgressRequest

The call object.

NewInstance(ClientBaseConfiguration)

protected override Tether.TetherClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
TetherTetherClient
Overrides