addRabbitMQ
Method
interface IDistributedApplicationBuilder { // ... omitted for brevity addRabbitMQ( name: string, userName?: ParameterResource, password?: ParameterResource, port?: number): RabbitMQServerResource;}Signature
method
addRabbitMQ builderAdds a RabbitMQ container to the application model.
addRabbitMQ( name: string, userName?: ParameterResource, password?: ParameterResource, port?: number): RabbitMQServerResourceParameters
namestringThe name of the resource. This name will be used as the connection string name when referenced in a dependency.userName ParameterResource optionalThe parameter used to provide the user name for the RabbitMQ resource. If `null` a default value will be used.passwordParameterResource optionalThe 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.Returns
RabbitMQServerResource Applies to
This method applies to the following types: