次の方法で共有


RabbitMQBuilderExtensions.WithDataBindMount Method

Definition

Adds a bind mount for the data folder to a RabbitMQ container resource.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.RabbitMQServerResource> WithDataBindMount (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.RabbitMQServerResource> builder, string source, bool isReadOnly = false);
static member WithDataBindMount : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.RabbitMQServerResource> * string * bool -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.RabbitMQServerResource>
<Extension()>
Public Function WithDataBindMount (builder As IResourceBuilder(Of RabbitMQServerResource), source As String, Optional isReadOnly As Boolean = false) As IResourceBuilder(Of RabbitMQServerResource)

Parameters

builder
IResourceBuilder<RabbitMQServerResource>

The resource builder.

source
String

The source directory on the host to mount into the container.

isReadOnly
Boolean

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

Returns

The IResourceBuilder<T>.

Applies to