Class Tether.TetherBase (1.0.0)

[BindServiceMethod(typeof(Tether), "BindService")]
public abstract class TetherBase

Base class for server-side implementations of Tether

Inheritance

Object > Tether.TetherBase

Namespace

Google.Cloud.ApigeeConnect.V1

Assembly

Google.Cloud.ApigeeConnect.V1.dll

Methods

Egress(IAsyncStreamReader<EgressResponse>, IServerStreamWriter<EgressRequest>, ServerCallContext)

public virtual Task Egress(IAsyncStreamReader<EgressResponse> requestStream, IServerStreamWriter<EgressRequest> responseStream, ServerCallContext context)

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
requestStreamIAsyncStreamReader<EgressResponse>

Used for reading requests from the client.

responseStreamIServerStreamWriter<EgressRequest>

Used for sending responses back to the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task

A task indicating completion of the handler.