Class GrpcDsl

Namespace: redb.Route.Grpc
Assembly: redb.Route.Grpc.dll

Fluent entry point for gRPC endpoints.

// Producer — call a remote gRPC service:
.To(GrpcDsl.Call("localhost:50051").Plaintext().Deadline(10_000))

// Consumer — host a gRPC service:
.From(GrpcDsl.Listen("0.0.0.0:50051"))

public static class GrpcDsl

Inheritance

Object→GrpcDsl

Methods

Call(string)

Call a remote gRPC endpoint (producer).

public static GrpcBuilder Call(string hostPort)

Listen(string)

Listen for incoming gRPC calls (consumer).

public static GrpcBuilder Listen(string hostPort)