addRabbitMQ

Method
📦 Aspire.Hosting.RabbitMQ v17.0.0
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addRabbitMQ(
name: string,
userName?: ParameterResource,
password?: ParameterResource,
port?: number): RabbitMQServerResource;
}

Signature

methodaddRabbitMQbuilder
Adds a RabbitMQ container to the application model.
addRabbitMQ(
name: string,
userName?: ParameterResource,
password?: ParameterResource,
port?: number): RabbitMQServerResource
namestringThe name of the resource. This name will be used as the connection string name when referenced in a dependency.
userNameParameterResourceoptionalThe parameter used to provide the user name for the RabbitMQ resource. If `null` a default value will be used.
passwordParameterResourceoptionalThe parameter used to provide the password for the RabbitMQ resource. If `null` a random password will be generated.
portnumberoptionalThe host port that the underlying container is bound to when running locally.
RabbitMQServerResource

Applies to

This method applies to the following types: