RavenDBBuilderExtensions
Class static net10.0
Provides extension methods for adding RavenDB resources to an
Hosting.IDistributedApplicationBuilder. namespace Aspire.Hosting;
public static class RavenDBBuilderExtensions{ // ...} 8 members
Methods8
Section titled MethodsAddDatabase(IResourceBuilder<RavenDBServerResource>, string, string?, bool)extensionIResourceBuilder<RavenDBDatabaseResource> Adds a database resource to an existing RavenDB server resource.
AddRavenDB(IDistributedApplicationBuilder, string)extensionIResourceBuilder<RavenDBServerResource> Adds a RavenDB server resource to the application model. A container is used for local development. This overload simplifies the configuration by creating an unsecured RavenDB server resource with default settings.
AddRavenDB(IDistributedApplicationBuilder, string, RavenDBServerSettings)extensionIResourceBuilder<RavenDBServerResource> Adds a RavenDB server resource to the application model. A container is used for local development. This version of the package defaults to the tag of the container image. This overload simplifies configuration by accepting a
RavenDBServerSettings object to specify server settings. AddRavenDB(IDistributedApplicationBuilder, string, bool, Dictionary<string, object>, int?)extensionIResourceBuilder<RavenDBServerResource> Adds a RavenDB server resource to the application model. A container is used for local development. This version of the package defaults to the tag of the container image.
WithDataBindMount(IResourceBuilder<RavenDBServerResource>, string, bool)extensionIResourceBuilder<RavenDBServerResource> Adds a bind mount for the data folder to a RavenDB container resource.
WithDataVolume(IResourceBuilder<RavenDBServerResource>, string?, bool)extensionIResourceBuilder<RavenDBServerResource> Adds a named volume for the data folder to a RavenDB container resource.
WithLogBindMount(IResourceBuilder<RavenDBServerResource>, string, bool)extensionIResourceBuilder<RavenDBServerResource> Adds a bind mount for the logs folder to a RavenDB container resource.
WithLogVolume(IResourceBuilder<RavenDBServerResource>, string?, bool)extensionIResourceBuilder<RavenDBServerResource> Adds a named volume for the logs folder to a RavenDB container resource.