Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithDataVolume

Method
📦 CommunityToolkit.Aspire.Hosting.RavenDB v13.6.1
func (RavenDBServerResource) WithDataVolume(options ...*WithDataVolumeOptions) RavenDBServerResource

Signature

methodWithDataVolumebuilder
Adds a named volume for the data folder to a RavenDB container resource.
WithDataVolume(options ...*WithDataVolumeOptions) RavenDBServerResource
options...*WithDataVolumeOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithDataVolumeOptions argument.

Name*stringOptional name for the volume. Defaults to a generated name if not provided.
IsReadOnly*boolIndicates whether the volume should be read-only. Defaults to false.
RavenDBServerResource

The IResourceBuilder for the RavenDB server resource.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: