RabbitMQBuilderExtensions.WithDataVolume Method

Definition

Adds a named volume for the data folder to a RabbitMQ container resource.

C#
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.RabbitMQServerResource> WithDataVolume(this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.RabbitMQServerResource> builder, string? name = default, bool isReadOnly = false);

Parameters

builder
IResourceBuilder<RabbitMQServerResource>

The resource builder.

name
String

The name of the volume. Defaults to an auto-generated name based on the application and resource names.

isReadOnly
Boolean

A flag that indicates if this is a read-only volume.

Returns

The IResourceBuilder<T>.

Applies to

Produkt Versionen
.NET Aspire 8.0.0, 9.0.0, 9.1.0