StellaOps.Router.Transport.Messaging
Router Messaging transport, client side: connects a microservice to a gateway through the request and response queues of a Messaging backend. Install Installing Stella Ops packagesRouter downloads and signaturesnet10.01.0.1-20261117T070237Zdotnet add package StellaOps.
Namespaces
| Namespace | Types |
|---|---|
StellaOps. | 3 |
StellaOps. | 1 |
StellaOps. | 1 |
StellaOps. | 4 |
namespace StellaOps.Router.Transport.Messaging
| Type | Kind | Description |
|---|---|---|
MessagingTransportClient | class | Transport client that communicates with the gateway via StellaOps.Messaging. |
MessagingTransportPlugin | class | Plugin for the client side of the Messaging transport, which a microservice connects with. |
MessagingTransportServiceCollectionExtensions | class | Extension methods for registering the client side of the messaging transport and the options both sides read. |
class MessagingTransportClient
public sealed class MessagingTransportClient : ITransportClient, IMicroserviceTransport, IDisposable
Transport client that communicates with the gateway via StellaOps.Messaging. Implements both ITransportClient (for sending to microservices) and IMicroserviceTransport (for microservices connecting to gateway).
Members
constructor MessagingTransportClient(IMessageQueueFactory, IOptions<MessagingTransportOptions>, ILogger<MessagingTransportClient>, IFrameEnvelopeSigner, IFrameEnvelopeVerifier, TimeProvider) #
MessagingTransportClient(IMessageQueueFactory, IOptions<MessagingTransportOptions>, ILogger<MessagingTransportClient>, IFrameEnvelopeSigner, IFrameEnvelopeVerifier, TimeProvider) #public MessagingTransportClient(IMessageQueueFactory queueFactory, IOptions<MessagingTransportOptions> options, ILogger<MessagingTransportClient> logger, IFrameEnvelopeSigner? envelopeSigner = null, IFrameEnvelopeVerifier? envelopeVerifier = null, TimeProvider? timeProvider = null)
Initializes a new instance of the MessagingTransportClientclass.
event OnCancelReceived #
OnCancelReceived #public event Func<Guid, string?, Task>? OnCancelReceived
Event raised when a CANCEL frame is received from the gateway.
event OnRequestReceived #
OnRequestReceived #public event Func<Frame, CancellationToken, Task<Frame>>? OnRequestReceived
Event raised when a REQUEST frame is received from the gateway.
event OnResyncRequested #
OnResyncRequested #public event Func<RegistrationResyncRequestPayload, CancellationToken, Task>? OnResyncRequested
Event raised when the router explicitly requests a fresh endpoint metadata replay.
event TransportDied #
TransportDied #public event Action? TransportDied
Raised when the messaging transport connection is permanently lost. The microservice’s router connection manager listens for this event and reconnects.
method ConnectAsync(InstanceDescriptor, IReadOnlyList<EndpointDescriptor>, CancellationToken) #
ConnectAsync(InstanceDescriptor, IReadOnlyList<EndpointDescriptor>, CancellationToken) #public Task ConnectAsync(InstanceDescriptor instance, IReadOnlyList<EndpointDescriptor> endpoints, CancellationToken cancellationToken)
Connects to the router and registers the microservice.
Parameters
instance: The instance descriptor.endpoints: The endpoints to register.cancellationToken: Cancellation token.
method ConnectAsync(InstanceDescriptor, IReadOnlyList<EndpointDescriptor>, IReadOnlyDictionary<string, SchemaDefinition>, ServiceOpenApiInfo, CancellationToken) #
ConnectAsync(InstanceDescriptor, IReadOnlyList<EndpointDescriptor>, IReadOnlyDictionary<string, SchemaDefinition>, ServiceOpenApiInfo, CancellationToken) #public Task ConnectAsync(InstanceDescriptor instance, IReadOnlyList<EndpointDescriptor> endpoints, IReadOnlyDictionary<string, SchemaDefinition>? schemas, ServiceOpenApiInfo? openApiInfo, CancellationToken cancellationToken)
Connects to the router and registers the microservice, including schemas and OpenAPI metadata.
Parameters
instance: The instance descriptor.endpoints: The endpoints to register.schemas: Optional schema definitions keyed by schema id.openApiInfo: Optional OpenAPI service metadata.cancellationToken: Cancellation token.
method DisconnectAsync() #
DisconnectAsync() #public Task DisconnectAsync()
Disconnects from the router.
method Dispose() #
Dispose() #public void Dispose()
See IDisposable..
method SendCancelAsync(ConnectionState, Guid, string) #
SendCancelAsync(ConnectionState, Guid, string) #public Task SendCancelAsync(ConnectionState connection, Guid correlationId, string? reason = null)
Sends a cancellation request.
Parameters
connection: The connection to use.correlationId: The correlation ID of the request to cancel.reason: Optional reason for cancellation.
Remarks
The signed per-connection control lane is the only cancellation path. A target that does not advertise RouterTransportCapabilities.receives no cancellation; there is no fallback path.
method SendEndpointsUpdateAsync(IReadOnlyList<EndpointDescriptor>, IReadOnlyDictionary<string, SchemaDefinition>, ServiceOpenApiInfo, CancellationToken) #
SendEndpointsUpdateAsync(IReadOnlyList<EndpointDescriptor>, IReadOnlyDictionary<string, SchemaDefinition>, ServiceOpenApiInfo, CancellationToken) #public Task SendEndpointsUpdateAsync(IReadOnlyList<EndpointDescriptor> endpoints, IReadOnlyDictionary<string, SchemaDefinition>? schemas, ServiceOpenApiInfo? openApiInfo, CancellationToken cancellationToken)
Sends the current endpoint/schema/OpenAPI metadata after the router explicitly requests a replay.
method SendGoodbyeAsync(CancellationToken) #
SendGoodbyeAsync(CancellationToken) #public Task SendGoodbyeAsync(CancellationToken cancellationToken)
Sends a best-effort Goodbye control frame before shutdown. Transports that do not maintain a live microservice connection may no-op.
Parameters
cancellationToken: Cancellation token.
method SendHeartbeatAsync(HeartbeatPayload, CancellationToken) #
SendHeartbeatAsync(HeartbeatPayload, CancellationToken) #public Task SendHeartbeatAsync(HeartbeatPayload heartbeat, CancellationToken cancellationToken)
Sends a heartbeat to the router.
Parameters
heartbeat: The heartbeat payload.cancellationToken: Cancellation token.
method SendRequestAsync(ConnectionState, Frame, TimeSpan, CancellationToken) #
SendRequestAsync(ConnectionState, Frame, TimeSpan, CancellationToken) #public Task<Frame> SendRequestAsync(ConnectionState connection, Frame requestFrame, TimeSpan timeout, CancellationToken cancellationToken)
Sends a request and waits for a response.
Parameters
connection: The connection to use.requestFrame: The request frame.timeout: The timeout for the request.cancellationToken: Cancellation token.
Returns
The response frame.
method SendStreamingAsync(ConnectionState, Frame, Stream, Func<ResponseFrame, Stream, Task>, PayloadLimits, CancellationToken) #
SendStreamingAsync(ConnectionState, Frame, Stream, Func<ResponseFrame, Stream, Task>, PayloadLimits, CancellationToken) #public Task SendStreamingAsync(ConnectionState connection, Frame requestHeader, Stream requestBody, Func<ResponseFrame, Stream, Task> readResponse, PayloadLimits limits, CancellationToken cancellationToken)
Sends a request whose body is read from a stream and hands the microservice’s response to readResponse. TransportStreamingDispatch.implements it for transports whose microservice side answers a request with one response frame.
Parameters
connection: The connection to use.requestHeader: The request header frame.requestBody: The request body stream.readResponse: Callback that receives the response head (the status code and headers of the microservice’s response; itsResponseFrame.is empty) and the response body stream.Payload limits: Payload limits to enforce.cancellationToken: Cancellation token.
Remarks
Sends the request body in one request frame (TransportStreamingDispatch.).
class MessagingTransportPlugin
public sealed class MessagingTransportPlugin : IRouterTransportPlugin
Plugin for the client side of the Messaging transport, which a microservice connects with. The server side is Messaging in Stella; both carry the transport name messaging.
Members
| Member | Kind | Summary |
|---|---|---|
MessagingTransportPlugin( | constructor | Creates an instance of Messaging. |
DisplayName | property | Gets the human-readable display name for this transport. |
Mode | property | Gets the side of the transport this plugin registers: RouterTransportMode., RouterTransportMode., or RouterTransportMode.. |
TransportName | property | Gets the transport name (e.g., “tcp”, “tls”, “udp”, “rabbitmq”, “inmemory”, “messaging”), shared by the client and the server plugin of one transport. |
Register( | method | Registers transport services into the DI container for the side the context asks for. |
RegisterShared( | method | The registration both sides share: frame envelope protection, the Messaging backend named at <section>:transport and the validated MessagingTransportOptionsbinding of the context’s section. |
constructor MessagingTransportPlugin() #
MessagingTransportPlugin() #public MessagingTransportPlugin()
Creates an instance of Messaging.
property DisplayName #
DisplayName #public string DisplayName { get; }
Gets the human-readable display name for this transport.
property Mode #
Mode #public RouterTransportMode Mode { get; }
Gets the side of the transport this plugin registers: RouterTransportMode., RouterTransportMode., or RouterTransportMode.. IRouterTransportPlugin.refuses a context that asks for a side outside this value (RouterTransportRegistrationContext.).
property TransportName #
TransportName #public string TransportName { get; }
Gets the transport name (e.g., “tcp”, “tls”, “udp”, “rabbitmq”, “inmemory”, “messaging”), shared by the client and the server plugin of one transport.
method Register(RouterTransportRegistrationContext) #
Register(RouterTransportRegistrationContext) #public void Register(RouterTransportRegistrationContext context)
Registers transport services into the DI container for the side the context asks for.
Parameters
context: The registration context containing services, configuration, and transport mode.
Exceptions
Invalid: The context asks for a side this plugin does not provide.Operation Exception
method RegisterShared(RouterTransportRegistrationContext) #
RegisterShared(RouterTransportRegistrationContext) #public static void RegisterShared(RouterTransportRegistrationContext context)
The registration both sides share: frame envelope protection, the Messaging backend named at <section>:transport and the validated MessagingTransportOptionsbinding of the context’s section.
Parameters
context: The registration context of the plugin.
class MessagingTransportServiceCollectionExtensions
public static class MessagingTransportServiceCollectionExtensions
Extension methods for registering the client side of the messaging transport and the options both sides read. The server side is Add in Stella.
Members
| Member | Kind | Summary |
|---|---|---|
AddMessagingTransportClient( | extension method | Adds the messaging transport client only (for Microservice SDK). |
AddMessagingTransportOptions( | extension method | Registers the validated MessagingTransportOptionsboth sides of the transport read, validated when the host starts. |
extension method AddMessagingTransportClient(IServiceCollection, Action<MessagingTransportOptions>) #
AddMessagingTransportClient(IServiceCollection, Action<MessagingTransportOptions>) #public static IServiceCollection AddMessagingTransportClient(this IServiceCollection services, Action<MessagingTransportOptions>? configure = null)
Adds the messaging transport client only (for Microservice SDK). Requires StellaOps.Messaging services to be registered.
Parameters
services: The service collection.configure: Optional configuration action.
Returns
The service collection for chaining.
extension method AddMessagingTransportOptions(IServiceCollection, Action<MessagingTransportOptions>) #
AddMessagingTransportOptions(IServiceCollection, Action<MessagingTransportOptions>) #public static IServiceCollection AddMessagingTransportOptions(this IServiceCollection services, Action<MessagingTransportOptions>? configure = null)
Registers the validated MessagingTransportOptionsboth sides of the transport read, validated when the host starts.
Parameters
services: The service collection.configure: Optional configuration action.
Returns
The service collection for chaining.
namespace StellaOps.Router.Transport.Messaging.Extensions
| Type | Kind | Description |
|---|---|---|
QueueWaitExtensions | class | Extension to efficiently await new messages on a queue. |
class QueueWaitExtensions
public static class QueueWaitExtensions
Extension to efficiently await new messages on a queue. Uses INotifiableQueue Pub/Sub wakeup when available, falls back to a delay for non-notifiable queue implementations.
Remarks
For Valkey queues the actual timeout is controlled by Valkey (default 5s, 0 = pure event-driven). The timeout parameter passed here is used only as a hint for the queue implementation. Both sides of the Messaging transport wait with it.
Members
| Member | Kind | Summary |
|---|---|---|
WaitForMessagesAsync< | extension method | Waits for new messages to become available on the queue, with no timeout hint. |
WaitForMessagesAsync< | extension method | Waits for new messages to become available on the queue. |
extension method WaitForMessagesAsync<TMessage>(IMessageQueue<TMessage>, CancellationToken) #
WaitForMessagesAsync<TMessage>(IMessageQueue<TMessage>, CancellationToken) #public static Task WaitForMessagesAsync<TMessage>(this IMessageQueue<TMessage> queue, CancellationToken cancellationToken) where TMessage : class
Waits for new messages to become available on the queue, with no timeout hint.
extension method WaitForMessagesAsync<TMessage>(IMessageQueue<TMessage>, TimeSpan, CancellationToken) #
WaitForMessagesAsync<TMessage>(IMessageQueue<TMessage>, TimeSpan, CancellationToken) #public static Task WaitForMessagesAsync<TMessage>(this IMessageQueue<TMessage> queue, TimeSpan heartbeatInterval, CancellationToken cancellationToken) where TMessage : class
Waits for new messages to become available on the queue.
namespace StellaOps.Router.Transport.Messaging.Options
| Type | Kind | Description |
|---|---|---|
MessagingTransportOptions | class | Configuration options for the messaging-based router transport. |
class MessagingTransportOptions
public class MessagingTransportOptions
Configuration options for the messaging-based router transport.
Members
| Member | Kind | Summary |
|---|---|---|
MessagingTransportOptions( | constructor | Creates an instance of Messaging. |
BatchSize | property | Gets or sets the batch size for leasing messages. |
CancelControlApproximateMaxLength | property | Gets or sets the approximate maximum number of entries retained in one connection-specific cancellation control stream. |
CancelControlBatchSize | property | Gets or sets the batch size for leasing dedicated cancellation controls. |
CancelControlQueueTemplate | property | Gets or sets the queue template for the connection-specific cancellation control lane. |
CancelTombstoneTtl | property | Gets or sets how long an exact-correlation cancellation remains active when it overtakes the corresponding request on the independent lane. |
ConsumerGroup | property | Gets or sets the consumer group name for request processing. |
DeadLetterSuffix | property | Gets or sets the dead letter queue suffix. |
GatewayControlQueueServiceName | property | Gets or sets the logical queue segment reserved for gateway control traffic (HELLO, HEARTBEAT, and microservice-to-gateway responses). |
HeartbeatInterval | property | Gets or sets the heartbeat interval. |
LeaseDuration | property | Gets or sets the lease duration for message processing. |
MaxConcurrentRequests | property | Gets or sets the maximum number of messages processed concurrently per consumer loop iteration. |
MaxPendingCancellations | property | Gets or sets the maximum number of expiring pre-cancel correlations held by one messaging client. |
RequestQueueTemplate | property | Gets or sets the queue name template for incoming requests. |
RequestTimeout | property | Gets or sets how long a consumer loop waits for the handler of one queue message before it stops awaiting it and releases the message for retry. |
ResponseQueueName | property | Gets or sets the queue name for gateway responses. |
GetCancelControlQueueName( | method | Gets the cancellation control queue for one logical service connection. |
GetGatewayControlQueueName( | method | Gets the queue name used for gateway control traffic. |
GetRequestQueueName( | method | Gets the request queue name for a specific service. |
constructor MessagingTransportOptions() #
MessagingTransportOptions() #public MessagingTransportOptions()
Creates an instance of Messaging.
property BatchSize #
BatchSize #public int BatchSize { get; set; }
Gets or sets the batch size for leasing messages.
property CancelControlApproximateMaxLength #
CancelControlApproximateMaxLength #public int CancelControlApproximateMaxLength { get; set; }
Gets or sets the approximate maximum number of entries retained in one connection-specific cancellation control stream.
property CancelControlBatchSize #
CancelControlBatchSize #public int CancelControlBatchSize { get; set; }
Gets or sets the batch size for leasing dedicated cancellation controls. This is independent from normal request and response leasing so a burst of abandoned requests can be cancelled in one control-loop wake.
property CancelControlQueueTemplate #
CancelControlQueueTemplate #public string CancelControlQueueTemplate { get; set; }
Gets or sets the queue template for the connection-specific cancellation control lane. Both {service} and {connection} placeholders are required.
property CancelTombstoneTtl #
CancelTombstoneTtl #public TimeSpan CancelTombstoneTtl { get; set; }
Gets or sets how long an exact-correlation cancellation remains active when it overtakes the corresponding request on the independent lane. Must be at least MessagingTransportOptions..
property ConsumerGroup #
ConsumerGroup #public string ConsumerGroup { get; set; }
Gets or sets the consumer group name for request processing.
property DeadLetterSuffix #
DeadLetterSuffix #public string DeadLetterSuffix { get; set; }
Gets or sets the dead letter queue suffix.
property GatewayControlQueueServiceName #
GatewayControlQueueServiceName #public string GatewayControlQueueServiceName { get; set; }
Gets or sets the logical queue segment reserved for gateway control traffic (HELLO, HEARTBEAT, and microservice-to-gateway responses).
Remarks
This must not overlap with any real microservice name. The default avoids collision with the “gateway” service.
property HeartbeatInterval #
HeartbeatInterval #public TimeSpan HeartbeatInterval { get; set; }
Gets or sets the heartbeat interval. Default: 45 seconds.
property LeaseDuration #
LeaseDuration #public TimeSpan LeaseDuration { get; set; }
Gets or sets the lease duration for message processing.
property MaxConcurrentRequests #
MaxConcurrentRequests #public int MaxConcurrentRequests { get; set; }
Gets or sets the maximum number of messages processed concurrently per consumer loop iteration. Prevents head-of-line blocking where one slow handler blocks all other messages in the batch. Default: 10 (matches BatchSize).
property MaxPendingCancellations #
MaxPendingCancellations #public int MaxPendingCancellations { get; set; }
Gets or sets the maximum number of expiring pre-cancel correlations held by one messaging client.
property RequestQueueTemplate #
RequestQueueTemplate #public string RequestQueueTemplate { get; set; }
Gets or sets the queue name template for incoming requests. Use {service} placeholder for service-specific queues. Example: “router:requests:{service}”
property RequestTimeout #
RequestTimeout #public TimeSpan RequestTimeout { get; set; }
Gets or sets how long a consumer loop waits for the handler of one queue message before it stops awaiting it and releases the message for retry. A request from the gateway is the exception: the service runs it until the request’s own timeout (the TimeoutSeconds of the request frame) and never releases it for a second run; this value applies to a request only when its frame carries no timeout.
property ResponseQueueName #
ResponseQueueName #public string ResponseQueueName { get; set; }
Gets or sets the queue name for gateway responses. Example: “router:responses”
method GetCancelControlQueueName(string, string) #
GetCancelControlQueueName(string, string) #public string GetCancelControlQueueName(string serviceName, string connectionId)
Gets the cancellation control queue for one logical service connection.
method GetGatewayControlQueueName() #
GetGatewayControlQueueName() #public string GetGatewayControlQueueName()
Gets the queue name used for gateway control traffic.
method GetRequestQueueName(string) #
GetRequestQueueName(string) #public string GetRequestQueueName(string serviceName)
Gets the request queue name for a specific service.
namespace StellaOps.Router.Transport.Messaging.Protocol
| Type | Kind | Description |
|---|---|---|
CancelControlPayload | record | Authenticated target binding carried by a dedicated cancellation-control frame: the JSON payload one side of the Messaging transport writes and the other reads. |
CorrelationTracker | class | Tracks pending request/response correlations for RPC-style messaging. |
RpcRequestMessage | record | Represents an RPC request message sent via the messaging transport. |
RpcResponseMessage | record | Represents an RPC response message sent via the messaging transport. |
record CancelControlPayload
public sealed record CancelControlPayload
Authenticated target binding carried by a dedicated cancellation-control frame: the JSON payload one side of the Messaging transport writes and the other reads.
Members
| Member | Kind | Summary |
|---|---|---|
CancelControlPayload( | constructor | Creates an instance of CancelControlPayload. |
OriginalPayloadBase64 | property | The payload of the original CANCEL frame, Base64-encoded. |
TargetConnectionId | property | The connection identifier the cancellation is addressed to. |
TargetService | property | The service name the cancellation is addressed to. |
constructor CancelControlPayload() #
CancelControlPayload() #public CancelControlPayload()
Creates an instance of CancelControlPayload.
property OriginalPayloadBase64 #
OriginalPayloadBase64 #public required string OriginalPayloadBase64 { get; init; }
The payload of the original CANCEL frame, Base64-encoded.
property TargetConnectionId #
TargetConnectionId #public required string TargetConnectionId { get; init; }
The connection identifier the cancellation is addressed to.
property TargetService #
TargetService #public required string TargetService { get; init; }
The service name the cancellation is addressed to.
class CorrelationTracker
public sealed class CorrelationTracker : IDisposable
Tracks pending request/response correlations for RPC-style messaging.
Members
| Member | Kind | Summary |
|---|---|---|
CorrelationTracker( | constructor | Initializes a new instance of the CorrelationTrackerclass. |
PendingCount | property | Gets the number of pending requests. |
Dispose( | method | See IDisposable.. |
RegisterRequestAsync( | method | Registers a pending request and returns a task that completes when the response arrives. |
TryCancelRequest( | method | Cancels a pending request. |
TryCompleteRequest( | method | Completes a pending request with the given response. |
TryFailRequest( | method | Fails a pending request with an exception. |
constructor CorrelationTracker(TimeProvider) #
CorrelationTracker(TimeProvider) #public CorrelationTracker(TimeProvider? timeProvider = null)
Initializes a new instance of the CorrelationTrackerclass.
property PendingCount #
PendingCount #public int PendingCount { get; }
Gets the number of pending requests.
method Dispose() #
Dispose() #public void Dispose()
See IDisposable..
method RegisterRequestAsync(string, TimeSpan, CancellationToken) #
RegisterRequestAsync(string, TimeSpan, CancellationToken) #public Task<Frame> RegisterRequestAsync(string correlationId, TimeSpan timeout, CancellationToken cancellationToken)
Registers a pending request and returns a task that completes when the response arrives.
method TryCancelRequest(string) #
TryCancelRequest(string) #public bool TryCancelRequest(string correlationId)
Cancels a pending request.
method TryCompleteRequest(string, Frame) #
TryCompleteRequest(string, Frame) #public bool TryCompleteRequest(string correlationId, Frame response)
Completes a pending request with the given response.
method TryFailRequest(string, Exception) #
TryFailRequest(string, Exception) #public bool TryFailRequest(string correlationId, Exception exception)
Fails a pending request with an exception.
record RpcRequestMessage
public sealed record RpcRequestMessage
Represents an RPC request message sent via the messaging transport.
Members
| Member | Kind | Summary |
|---|---|---|
RpcRequestMessage( | constructor | Creates an instance of RpcRequestMessage. |
ConnectionId | property | Gets the connection ID of the sender. |
CorrelationId | property | Gets the correlation ID for matching requests to responses. |
CreatedAt | property | Gets the timestamp when this request was created. |
EnvelopeSeal | property | Gets the gateway-issued envelope HMAC seal attached to the frame. |
FrameType | property | Gets the frame type. |
PayloadBase64 | property | Gets the frame payload as base64-encoded bytes. |
ReplyToQueue | property | Gets the reply-to queue name for responses. |
SenderInstanceId | property | Gets the instance ID of the sender. |
TargetService | property | Gets the target service name. |
Timeout | property | Gets the timeout for this request. |
constructor RpcRequestMessage() #
RpcRequestMessage() #public RpcRequestMessage()
Creates an instance of RpcRequestMessage.
property ConnectionId #
ConnectionId #public required string ConnectionId { get; init; }
Gets the connection ID of the sender.
property CorrelationId #
CorrelationId #public required string CorrelationId { get; init; }
Gets the correlation ID for matching requests to responses.
property CreatedAt #
CreatedAt #public DateTimeOffset CreatedAt { get; init; }
Gets the timestamp when this request was created.
property EnvelopeSeal #
EnvelopeSeal #public FrameEnvelopeSeal? EnvelopeSeal { get; init; }
Gets the gateway-issued envelope HMAC seal attached to the frame.
Remarks
Messaging transports must carry the envelope seal alongside the payload so that Messaging (Stella) can verify before dispatch and dead-letter forged frames with reason envelope-invalid.
property FrameType #
FrameType #public required FrameType FrameType { get; init; }
Gets the frame type.
property PayloadBase64 #
PayloadBase64 #public required string PayloadBase64 { get; init; }
Gets the frame payload as base64-encoded bytes.
property ReplyToQueue #
ReplyToQueue #public string? ReplyToQueue { get; init; }
Gets the reply-to queue name for responses.
property SenderInstanceId #
SenderInstanceId #public string? SenderInstanceId { get; init; }
Gets the instance ID of the sender.
property TargetService #
TargetService #public required string TargetService { get; init; }
Gets the target service name.
property Timeout #
Timeout #public TimeSpan? Timeout { get; init; }
Gets the timeout for this request.
record RpcResponseMessage
public sealed record RpcResponseMessage
Represents an RPC response message sent via the messaging transport.
Members
| Member | Kind | Summary |
|---|---|---|
RpcResponseMessage( | constructor | Creates an instance of RpcResponseMessage. |
ConnectionId | property | Gets the connection ID of the responder. |
CorrelationId | property | Gets the correlation ID matching the original request. |
CreatedAt | property | Gets the timestamp when this response was created. |
EnvelopeSeal | property | Gets the gateway-issued envelope HMAC seal attached to the frame. |
ErrorMessage | property | Gets the error message if the request failed. |
FrameType | property | Gets the frame type. |
IsSuccess | property | Gets a value indicating whether the request was successful. |
PayloadBase64 | property | Gets the frame payload as base64-encoded bytes. |
ResponderInstanceId | property | Gets the instance ID of the responder. |
constructor RpcResponseMessage() #
RpcResponseMessage() #public RpcResponseMessage()
Creates an instance of RpcResponseMessage.
property ConnectionId #
ConnectionId #public required string ConnectionId { get; init; }
Gets the connection ID of the responder.
property CorrelationId #
CorrelationId #public required string CorrelationId { get; init; }
Gets the correlation ID matching the original request.
property CreatedAt #
CreatedAt #public DateTimeOffset CreatedAt { get; init; }
Gets the timestamp when this response was created.
property EnvelopeSeal #
EnvelopeSeal #public FrameEnvelopeSeal? EnvelopeSeal { get; init; }
Gets the gateway-issued envelope HMAC seal attached to the frame.
Remarks
Response messages carry the seal computed by the responding microservice’s signer so the gateway can verify before forwarding the response to the caller.
property ErrorMessage #
ErrorMessage #public string? ErrorMessage { get; init; }
Gets the error message if the request failed.
property FrameType #
FrameType #public required FrameType FrameType { get; init; }
Gets the frame type.
property IsSuccess #
IsSuccess #public bool IsSuccess { get; init; }
Gets a value indicating whether the request was successful.
property PayloadBase64 #
PayloadBase64 #public required string PayloadBase64 { get; init; }
Gets the frame payload as base64-encoded bytes.
property ResponderInstanceId #
ResponderInstanceId #public string? ResponderInstanceId { get; init; }
Gets the instance ID of the responder.