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

public class TetherClient : ClientBase<Tether.TetherClient>

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

Client for Tether

Inheritance

Object > ClientBase > ClientBase<Tether.TetherClient> > 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(ClientBase.ClientBaseConfiguration)

protected TetherClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

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
AsyncDuplexStreamingCall<EgressResponse, EgressRequest>

The call object.

Egress(Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncDuplexStreamingCall<EgressResponse, EgressRequest> Egress(Metadata headers = null, DateTime? deadline = null, 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
NameDescription
headersMetadata

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

deadlineNullable<DateTime>

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
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
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
Tether.TetherClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.ApigeeConnect.V1.Tether.TetherClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)