Skip to content

Class DiscoveryService.DiscoveryServiceClient

Namespace: Cephalon.AspNetCore.Grpc.Contracts.Discovery
Assembly: Cephalon.AspNetCore.Grpc.dll

Client for DiscoveryService

public class DiscoveryService.DiscoveryServiceClient : ClientBase<DiscoveryService.DiscoveryServiceClient>

objectClientBaseClientBase<DiscoveryService.DiscoveryServiceClient>DiscoveryService.DiscoveryServiceClient

ClientBase<DiscoveryService.DiscoveryServiceClient>.WithHost(string), ClientBase<DiscoveryService.DiscoveryServiceClient>.NewInstance(ClientBase.ClientBaseConfiguration), ClientBase.CallInvoker, object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Creates a new client for DiscoveryService

public DiscoveryServiceClient(ChannelBase channel)

channel ChannelBase

The channel to use to make remote calls.

Creates a new client for DiscoveryService that uses a custom CallInvoker.

public DiscoveryServiceClient(CallInvoker callInvoker)

callInvoker CallInvoker

The callInvoker to use to make remote calls.

Protected parameterless constructor to allow creation of test doubles.

protected DiscoveryServiceClient()

DiscoveryServiceClient(ClientBaseConfiguration)

Section titled “ DiscoveryServiceClient(ClientBaseConfiguration)”

Protected constructor to allow creation of configured clients.

protected DiscoveryServiceClient(ClientBase.ClientBaseConfiguration configuration)

configuration ClientBase.ClientBaseConfiguration

The client configuration.

ExchangeGreetings(Metadata, DateTime?, CancellationToken)

Section titled “ ExchangeGreetings(Metadata, DateTime?, CancellationToken)”

Exchanges greeting messages bidirectionally to validate duplex streaming support.

public virtual AsyncDuplexStreamingCall<HelloRequest, HelloReply> ExchangeGreetings(Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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.

AsyncDuplexStreamingCall<HelloRequest, HelloReply>

The call object.

Exchanges greeting messages bidirectionally to validate duplex streaming support.

public virtual AsyncDuplexStreamingCall<HelloRequest, HelloReply> ExchangeGreetings(CallOptions options)

options CallOptions

The options for the call.

AsyncDuplexStreamingCall<HelloRequest, HelloReply>

The call object.

Creates a new instance of client from given ClientBaseConfiguration.

protected override DiscoveryService.DiscoveryServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

configuration ClientBase.ClientBaseConfiguration

DiscoveryService.DiscoveryServiceClient

SayHello(HelloRequest, Metadata, DateTime?, CancellationToken)

Section titled “ SayHello(HelloRequest, Metadata, DateTime?, CancellationToken)”

Returns a single greeting for the requested caller.

public virtual HelloReply SayHello(HelloRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

request HelloRequest

The request to send to the server.

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.

HelloReply

The response received from the server.

Returns a single greeting for the requested caller.

public virtual HelloReply SayHello(HelloRequest request, CallOptions options)

request HelloRequest

The request to send to the server.

options CallOptions

The options for the call.

HelloReply

The response received from the server.

SayHelloAsync(HelloRequest, Metadata, DateTime?, CancellationToken)

Section titled “ SayHelloAsync(HelloRequest, Metadata, DateTime?, CancellationToken)”

Returns a single greeting for the requested caller.

public virtual AsyncUnaryCall<HelloReply> SayHelloAsync(HelloRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

request HelloRequest

The request to send to the server.

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.

AsyncUnaryCall<HelloReply>

The call object.

Returns a single greeting for the requested caller.

public virtual AsyncUnaryCall<HelloReply> SayHelloAsync(HelloRequest request, CallOptions options)

request HelloRequest

The request to send to the server.

options CallOptions

The options for the call.

AsyncUnaryCall<HelloReply>

The call object.

StreamPrinciples(PrinciplesRequest, Metadata, DateTime?, CancellationToken)

Section titled “ StreamPrinciples(PrinciplesRequest, Metadata, DateTime?, CancellationToken)”

Streams the host principles that describe the Cephalon runtime shape.

public virtual AsyncServerStreamingCall<PrincipleReply> StreamPrinciples(PrinciplesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

request PrinciplesRequest

The request to send to the server.

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.

AsyncServerStreamingCall<PrincipleReply>

The call object.

StreamPrinciples(PrinciplesRequest, CallOptions)

Section titled “ StreamPrinciples(PrinciplesRequest, CallOptions)”

Streams the host principles that describe the Cephalon runtime shape.

public virtual AsyncServerStreamingCall<PrincipleReply> StreamPrinciples(PrinciplesRequest request, CallOptions options)

request PrinciplesRequest

The request to send to the server.

options CallOptions

The options for the call.

AsyncServerStreamingCall<PrincipleReply>

The call object.