DbGateBuilderExtensions
Class static net10.0
Provides extension methods for DbGate resources to an
Hosting.IDistributedApplicationBuilder. namespace Aspire.Hosting;
public static class DbGateBuilderExtensions{ // ...} 5 members
Methods5
Section titled MethodsAddDbGate(IDistributedApplicationBuilder, string, int?)extensionats exportIResourceBuilder<DbGateContainerResource> Adds a DbGate container resource to the application.
SanitizeConnectionId(string)staticstring Sanitizes a resource name to be used as a connection ID in DbGate environment variables.
WithDataBindMount(IResourceBuilder<DbGateContainerResource>, string, bool)extensionats exportIResourceBuilder<DbGateContainerResource> Adds a bind mount for the data folder to a DbGate container resource.
WithDataVolume(IResourceBuilder<DbGateContainerResource>, string?, bool)extensionats exportIResourceBuilder<DbGateContainerResource> Adds a named volume for the data folder to a DbGate container resource.
WithHostPort(IResourceBuilder<DbGateContainerResource>, int?)extensionats exportIResourceBuilder<DbGateContainerResource> Configures the host port that the DbGate resource is exposed on instead of using randomly assigned port.