Skip to content

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.DiscoveryServiceBase

objectDiscoveryService.DiscoveryServiceBase

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

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)

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.

Task

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)

request HelloRequest

The request received from the client.

context ServerCallContext

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

Task<HelloReply>

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)

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.

Task

A task indicating completion of the handler.