Class DiscoveryService.DiscoveryServiceBase
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.AspNetCore.Grpc.Contracts.Discovery
Assembly: Cephalon.AspNetCore.Grpc.dll
Base class for server-side implementations of DiscoveryService
[BindServiceMethod(typeof(DiscoveryService), "BindService")]public abstract class DiscoveryService.DiscoveryServiceBaseInheritance
Section titled “Inheritance”object ← DiscoveryService.DiscoveryServiceBase
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods
Section titled “Methods”ExchangeGreetings(IAsyncStreamReader<HelloRequest>, IServerStreamWriter<HelloReply>, ServerCallContext)
Section titled “ ExchangeGreetings(IAsyncStreamReader<HelloRequest>, IServerStreamWriter<HelloReply>, ServerCallContext)”Exchanges greeting messages bidirectionally to validate duplex streaming support.
public virtual Task ExchangeGreetings(IAsyncStreamReader<HelloRequest> requestStream, IServerStreamWriter<HelloReply> responseStream, ServerCallContext context)Parameters
Section titled “Parameters”requestStream IAsyncStreamReader<HelloRequest>
Used for reading requests from the client.
responseStream IServerStreamWriter<HelloReply>
Used for sending responses back to the client.
context ServerCallContext
The context of the server-side call handler being invoked.
Returns
Section titled “Returns”A task indicating completion of the handler.
SayHello(HelloRequest, ServerCallContext)
Section titled “ SayHello(HelloRequest, ServerCallContext)”Returns a single greeting for the requested caller.
public virtual Task<HelloReply> SayHello(HelloRequest request, ServerCallContext context)Parameters
Section titled “Parameters”request HelloRequest
The request received from the client.
context ServerCallContext
The context of the server-side call handler being invoked.
Returns
Section titled “Returns”The response to send back to the client (wrapped by a task).
StreamPrinciples(PrinciplesRequest, IServerStreamWriter<PrincipleReply>, ServerCallContext)
Section titled “ StreamPrinciples(PrinciplesRequest, IServerStreamWriter<PrincipleReply>, ServerCallContext)”Streams the host principles that describe the Cephalon runtime shape.
public virtual Task StreamPrinciples(PrinciplesRequest request, IServerStreamWriter<PrincipleReply> responseStream, ServerCallContext context)Parameters
Section titled “Parameters”request PrinciplesRequest
The request received from the client.
responseStream IServerStreamWriter<PrincipleReply>
Used for sending responses back to the client.
context ServerCallContext
The context of the server-side call handler being invoked.
Returns
Section titled “Returns”A task indicating completion of the handler.