LavinMQHostingExtension
Class static net10.0
Provides extension methods for configuring and adding a LavinMQ container as a resource within a distributed application using Aspire.Hosting. This enables connection, health checks, and specific configurations for LavinMQ instances.
namespace Aspire.Hosting;
public static class LavinMQHostingExtension{ // ...}Methods3
Section titled MethodsAddLavinMQ(IDistributedApplicationBuilder, string, int, int)extensionIResourceBuilder<LavinMQContainerResource> Adds a LavinMQ container resource to the distributed application builder. Configures the resource with specified parameters and sets up health checks for the resource.
WithDataBindMount(IResourceBuilder<LavinMQContainerResource>, string, bool)extensionIResourceBuilder<LavinMQContainerResource> 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.
WithDataVolume(IResourceBuilder<LavinMQContainerResource>, string, bool)extensionIResourceBuilder<LavinMQContainerResource> Configures a data volume for the LavinMQ container resource by specifying its name and read-only status.