[BindServiceMethod(typeof(Tether), "BindService")]
public abstract class TetherBase
Reference documentation and code samples for the Apigee Connect v1 API class Tether.TetherBase.
Base class for server-side implementations of Tether
Namespace
Google.Cloud.ApigeeConnect.V1Assembly
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 | |
---|---|
Name | Description |
requestStream | IAsyncStreamReader<EgressResponse> Used for reading requests from the client. |
responseStream | IServerStreamWriter<EgressRequest> Used for sending responses back to the client. |
context | ServerCallContext The context of the server-side call handler being invoked. |
Returns | |
---|---|
Type | Description |
Task | A task indicating completion of the handler. |