StellaOps.Workflow.Transport.RabbitMq
RabbitMQ transport of the workflow engine: the rabbit kind publishes JSON to an exchange and routing key with publisher confirms, and with a command declaration frames the call as an envelope or a header and waits for the correlated reply. Install Installing Stella Ops packagesWorkflow downloads and signaturesnet10.01.0.1-20261118T121708Zdotnet add package StellaOps.
Namespaces
| Namespace | Types |
|---|---|
StellaOps. | 5 |
namespace StellaOps.Workflow.Transport.RabbitMq
| Type | Kind | Description |
|---|---|---|
RabbitMqWorkflowTransportRoutine | class | Dependency-injection routine of the RabbitMQ transport. |
WorkflowRabbitReplyQueueMode | enum | How replies to command-style calls reach this host. |
WorkflowRabbitTlsOptions | class | TLS settings of the broker connection. |
WorkflowRabbitTransportOptions | class | Settings of the RabbitMQ transport, bound from WorkflowRabbitTransportOptions.. |
WorkflowRabbitTransportServiceCollectionExtensions | class | Registers the RabbitMQ transport of the Workflow engine. |
class RabbitMqWorkflowTransportRoutine
public sealed class RabbitMqWorkflowTransportRoutine : IDependencyInjectionRoutine
Dependency-injection routine of the RabbitMQ transport. A host that loads this assembly as a plug-in discovers the routine; it registers exactly what WorkflowRabbitTransportServiceCollectionExtensions.registers.
Members
| Member | Kind | Summary |
|---|---|---|
RabbitMqWorkflowTransportRoutine( | constructor | Creates an instance of Rabbit. |
Register( | method | Registers what WorkflowRabbitTransportServiceCollectionExtensions.registers. |
constructor RabbitMqWorkflowTransportRoutine() #
RabbitMqWorkflowTransportRoutine() #public RabbitMqWorkflowTransportRoutine()
Creates an instance of Rabbit.
method Register(IServiceCollection, IConfiguration) #
Register(IServiceCollection, IConfiguration) #public IServiceCollection Register(IServiceCollection services, IConfiguration configuration)
Registers what WorkflowRabbitTransportServiceCollectionExtensions.registers.
Parameters
services: The service collection.configuration: The host configuration.
Returns
The same service collection.
enum WorkflowRabbitReplyQueueMode
public enum WorkflowRabbitReplyQueueMode
How replies to command-style calls reach this host.
class WorkflowRabbitTlsOptions
public sealed class WorkflowRabbitTlsOptions
TLS settings of the broker connection.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowRabbitTlsOptions( | constructor | Creates an instance of Workflow. |
ClientCertificatePassphrase | property | The passphrase of WorkflowRabbitTlsOptions., from the operator’s configuration source. |
ClientCertificatePath | property | A client certificate file for mutual TLS, if the broker asks for one. |
Enabled | property | Switches TLS on for the broker connection. |
ServerName | property | The name the broker certificate must carry; when empty, WorkflowRabbitTransportOptions.. |
constructor WorkflowRabbitTlsOptions() #
WorkflowRabbitTlsOptions() #public WorkflowRabbitTlsOptions()
Creates an instance of Workflow.
property ClientCertificatePassphrase #
ClientCertificatePassphrase #public string? ClientCertificatePassphrase { get; set; }
The passphrase of WorkflowRabbitTlsOptions., from the operator’s configuration source.
property ClientCertificatePath #
ClientCertificatePath #public string? ClientCertificatePath { get; set; }
A client certificate file for mutual TLS, if the broker asks for one.
property Enabled #
Enabled #public bool Enabled { get; set; }
Switches TLS on for the broker connection. Default off.
property ServerName #
ServerName #public string? ServerName { get; set; }
The name the broker certificate must carry; when empty, WorkflowRabbitTransportOptions..
class WorkflowRabbitTransportOptions
public sealed class WorkflowRabbitTransportOptions
Settings of the RabbitMQ transport, bound from WorkflowRabbitTransportOptions.. The broker address has no default: a call is refused until WorkflowRabbitTransportOptions.is set. The header and field names that frame a command-style call are configuration, so a host can match the message format its peers expect.
Members
| Member | Kind | Summary |
|---|---|---|
WorkflowRabbitTransportOptions( | constructor | Creates an instance of Workflow. |
SectionName | constant | The configuration section the options bind from: Workflow. |
ChannelPoolSize | property | The most idle publishing channels the transport keeps open. |
ClientProvidedName | property | The connection name the broker shows for this host. |
CommandHeaderName | property | Header framing: the message header that carries the command name. |
ConfirmTimeoutSeconds | property | Seconds to wait for the broker’s publisher confirm. |
EnvelopeCommandField | property | Envelope framing: the envelope field that carries the command name. |
EnvelopeCorrelationIdField | property | Envelope framing: the envelope field that carries the correlation id. |
EnvelopePayloadField | property | Envelope framing: the envelope field that carries the payload. |
HostName | property | The broker host. |
Password | property | The password; when empty, the client library’s default applies. |
Port | property | The broker port. |
ReplyErrorField | property | Envelope framing: the reply envelope field whose non-empty value marks a failed call. |
ReplyErrorHeaderName | property | Header framing: the reply header whose non-empty value marks a failed call. |
ReplyPayloadField | property | Envelope framing: the reply envelope field that carries the reply payload. |
ReplyQueueMode | property | How replies reach this host: the broker’s direct reply-to (default) or one exclusive reply queue per host. |
ReplyTimeoutSeconds | property | Seconds to wait for the correlated reply of a command that expects one. |
Tls | property | TLS to the broker; off unless WorkflowRabbitTlsOptions.is set. |
UserName | property | The user name; when empty, the client library’s default applies. |
VirtualHost | property | The broker virtual host. |
constructor WorkflowRabbitTransportOptions() #
WorkflowRabbitTransportOptions() #public WorkflowRabbitTransportOptions()
Creates an instance of Workflow.
constant SectionName #
SectionName #public const string SectionName = "WorkflowRabbitTransport"
The configuration section the options bind from: Workflow.
property ChannelPoolSize #
ChannelPoolSize #public int ChannelPoolSize { get; set; }
The most idle publishing channels the transport keeps open.
property ClientProvidedName #
ClientProvidedName #public string ClientProvidedName { get; set; }
The connection name the broker shows for this host.
property CommandHeaderName #
CommandHeaderName #public string CommandHeaderName { get; set; }
Header framing: the message header that carries the command name.
property ConfirmTimeoutSeconds #
ConfirmTimeoutSeconds #public int? ConfirmTimeoutSeconds { get; set; }
Seconds to wait for the broker’s publisher confirm. When null, the engine’s transport default applies.
property EnvelopeCommandField #
EnvelopeCommandField #public string EnvelopeCommandField { get; set; }
Envelope framing: the envelope field that carries the command name.
property EnvelopeCorrelationIdField #
EnvelopeCorrelationIdField #public string EnvelopeCorrelationIdField { get; set; }
Envelope framing: the envelope field that carries the correlation id.
property EnvelopePayloadField #
EnvelopePayloadField #public string EnvelopePayloadField { get; set; }
Envelope framing: the envelope field that carries the payload.
property HostName #
HostName #public string? HostName { get; set; }
The broker host. Required: a call without it is refused and opens no connection.
property Password #
Password #public string? Password { get; set; }
The password; when empty, the client library’s default applies.
property Port #
Port #public int Port { get; set; }
The broker port. The default is 5672.
property ReplyErrorField #
ReplyErrorField #public string ReplyErrorField { get; set; }
Envelope framing: the reply envelope field whose non-empty value marks a failed call.
property ReplyErrorHeaderName #
ReplyErrorHeaderName #public string ReplyErrorHeaderName { get; set; }
Header framing: the reply header whose non-empty value marks a failed call.
property ReplyPayloadField #
ReplyPayloadField #public string ReplyPayloadField { get; set; }
Envelope framing: the reply envelope field that carries the reply payload.
property ReplyQueueMode #
ReplyQueueMode #public WorkflowRabbitReplyQueueMode ReplyQueueMode { get; set; }
How replies reach this host: the broker’s direct reply-to (default) or one exclusive reply queue per host.
property ReplyTimeoutSeconds #
ReplyTimeoutSeconds #public int? ReplyTimeoutSeconds { get; set; }
Seconds to wait for the correlated reply of a command that expects one. When null, the engine’s transport default applies.
property Tls #
Tls #public WorkflowRabbitTlsOptions Tls { get; set; }
TLS to the broker; off unless WorkflowRabbitTlsOptions.is set.
property UserName #
UserName #public string? UserName { get; set; }
The user name; when empty, the client library’s default applies.
property VirtualHost #
VirtualHost #public string VirtualHost { get; set; }
The broker virtual host. The default is /.
class WorkflowRabbitTransportServiceCollectionExtensions
public static class WorkflowRabbitTransportServiceCollectionExtensions
Registers the RabbitMQ transport of the Workflow engine.
Members
| Member | Kind | Summary |
|---|---|---|
AddWorkflowRabbitTransport( | extension method | Registers the RabbitMQ transport as the IWorkflowRabbitTransport(module transport.rabbit), with one broker connection per host, from the Workflow configuration section. |
extension method AddWorkflowRabbitTransport(IServiceCollection, IConfiguration) #
AddWorkflowRabbitTransport(IServiceCollection, IConfiguration) #public static IServiceCollection AddWorkflowRabbitTransport(this IServiceCollection services, IConfiguration configuration)
Registers the RabbitMQ transport as the IWorkflowRabbitTransport(module transport.rabbit), with one broker connection per host, from the Workflow configuration section.