NatsBuilderExtensions.WithDataBindMount Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds a bind mount for the data folder to a NATS container resource.
public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.NatsServerResource> WithDataBindMount (this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.NatsServerResource> builder, string source, bool isReadOnly = false);
static member WithDataBindMount : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.NatsServerResource> * string * bool -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.NatsServerResource>
<Extension()>
Public Function WithDataBindMount (builder As IResourceBuilder(Of NatsServerResource), source As String, Optional isReadOnly As Boolean = false) As IResourceBuilder(Of NatsServerResource)
Parameters
- builder
- IResourceBuilder<NatsServerResource>
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>.