Skip to content
DocsTry Aspire
DocsTry

VolumeNameGenerator Methods

ClassMethods1 member
Utility class for generating volume names.
Generate(IResourceBuilder<T>, string)Section titled Generate(IResourceBuilder<T>, string)staticstring
Generates a volume name with the form {applicationName}-{sha256 of apphost path}-{resourceName}-{suffix}, e.g. myapplication-a345f2451-postgres-data.
public static class VolumeNameGenerator
{
public static string Generate<T>(
IResourceBuilder<T> builder,
string suffix)
{
// ...
}
}
builderIResourceBuilder<T>The resource builder.
suffixstringThe suffix to append to the volume name.
stringThe volume name.
ArgumentException