Skip to content
DocsTry Aspire
DocsTry

LavinMQContainerResource

Handle
📦 CommunityToolkit.Aspire.Hosting.LavinMQ v13.4.0
interface LavinMQContainerResource
extends IComputeResource,
IExpressionValue,
IManifestExpressionProvider,
IResource,
IResourceWithArgs,
IResourceWithConnectionString,
IResourceWithEndpoints,
IResourceWithEnvironment,
IResourceWithProbes,
IResourceWithWaitSupport,
IValueProvider,
IValueWithReferences {
readonly connectionStringExpression: ReferenceExpression;
readonly host: EndpointReferenceExpression;
readonly port: EndpointReferenceExpression;
readonly primaryEndpoint: EndpointReference;
readonly uriExpression: ReferenceExpression;
withDataBindMount(
source: string,
isReadOnly?: boolean): LavinMQContainerResource;
withDataVolume(
name: string,
isReadOnly?: boolean): LavinMQContainerResource;
}

Properties

propertyconnectionStringExpressionReferenceExpressionget
ConnectionString for the LavinMQ server in the form of amqp://guest:guest@host:port/.
propertyhostEndpointReferenceExpressionget
Gets the host endpoint reference for this resource.
propertyportEndpointReferenceExpressionget
Gets the port endpoint reference for this resource.
propertyprimaryEndpointEndpointReferenceget
Gets the primary AMQP endpoint for the LavinMQ resource.
propertyuriExpressionReferenceExpressionget
Gets the connection URI expression for the LavinMQ server.

Methods

methodwithDataBindMountbuilder
Configures a bind mount for the LavinMQ container resource to allow data persistence. The method mounts a specified source path on the host to the container's data directory.
withDataBindMount(
source: string,
isReadOnly?: boolean): LavinMQContainerResource
sourcestring
isReadOnlybooleanoptional= False
LavinMQContainerResource
methodwithDataVolumebuilder
Configures a data volume for the LavinMQ container resource by specifying its name and read-only status.
withDataVolume(
name: string,
isReadOnly?: boolean): LavinMQContainerResource
namestring
isReadOnlybooleanoptional= False
LavinMQContainerResource