Class DiscoveryService.DiscoveryServiceClient
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.AspNetCore.Grpc.Contracts.Discovery
Assembly: Cephalon.AspNetCore.Grpc.dll
Client for DiscoveryService
public class DiscoveryService.DiscoveryServiceClient : ClientBase<DiscoveryService.DiscoveryServiceClient>Inheritance
Section titled “Inheritance”object ← ClientBase ← ClientBase<DiscoveryService.DiscoveryServiceClient> ← DiscoveryService.DiscoveryServiceClient
Inherited Members
Section titled “Inherited Members”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()
Constructors
Section titled “Constructors”DiscoveryServiceClient(ChannelBase)
Section titled “ DiscoveryServiceClient(ChannelBase)”Creates a new client for DiscoveryService
public DiscoveryServiceClient(ChannelBase channel)Parameters
Section titled “Parameters”channel ChannelBase
The channel to use to make remote calls.
DiscoveryServiceClient(CallInvoker)
Section titled “ DiscoveryServiceClient(CallInvoker)”Creates a new client for DiscoveryService that uses a custom CallInvoker.
public DiscoveryServiceClient(CallInvoker callInvoker)Parameters
Section titled “Parameters”callInvoker CallInvoker
The callInvoker to use to make remote calls.
DiscoveryServiceClient()
Section titled “ DiscoveryServiceClient()”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)Parameters
Section titled “Parameters”configuration ClientBase.ClientBaseConfiguration
The client configuration.
Methods
Section titled “Methods”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)Parameters
Section titled “Parameters”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.
Returns
Section titled “Returns”AsyncDuplexStreamingCall<HelloRequest, HelloReply>
The call object.
ExchangeGreetings(CallOptions)
Section titled “ ExchangeGreetings(CallOptions)”Exchanges greeting messages bidirectionally to validate duplex streaming support.
public virtual AsyncDuplexStreamingCall<HelloRequest, HelloReply> ExchangeGreetings(CallOptions options)Parameters
Section titled “Parameters”options CallOptions
The options for the call.
Returns
Section titled “Returns”AsyncDuplexStreamingCall<HelloRequest, HelloReply>
The call object.
NewInstance(ClientBaseConfiguration)
Section titled “ NewInstance(ClientBaseConfiguration)”Creates a new instance of client from given ClientBaseConfiguration.
protected override DiscoveryService.DiscoveryServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)Parameters
Section titled “Parameters”configuration ClientBase.ClientBaseConfiguration
Returns
Section titled “Returns”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)Parameters
Section titled “Parameters”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.
Returns
Section titled “Returns”The response received from the server.
SayHello(HelloRequest, CallOptions)
Section titled “ SayHello(HelloRequest, CallOptions)”Returns a single greeting for the requested caller.
public virtual HelloReply SayHello(HelloRequest request, CallOptions options)Parameters
Section titled “Parameters”request HelloRequest
The request to send to the server.
options CallOptions
The options for the call.
Returns
Section titled “Returns”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)Parameters
Section titled “Parameters”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.
Returns
Section titled “Returns”The call object.
SayHelloAsync(HelloRequest, CallOptions)
Section titled “ SayHelloAsync(HelloRequest, CallOptions)”Returns a single greeting for the requested caller.
public virtual AsyncUnaryCall<HelloReply> SayHelloAsync(HelloRequest request, CallOptions options)Parameters
Section titled “Parameters”request HelloRequest
The request to send to the server.
options CallOptions
The options for the call.
Returns
Section titled “Returns”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)Parameters
Section titled “Parameters”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.
Returns
Section titled “Returns”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)Parameters
Section titled “Parameters”request PrinciplesRequest
The request to send to the server.
options CallOptions
The options for the call.
Returns
Section titled “Returns”AsyncServerStreamingCall<PrincipleReply>
The call object.