Skip to content
Docs Try Aspire

ParameterResourceBuilderExtensions

Class static net10.0
📦 Aspire.Hosting v13.1.2
Provides extension methods for adding parameter resources to an application.
namespace Aspire.Hosting;
public static class ParameterResourceBuilderExtensions
{
// ...
}
AddConnectionString(IDistributedApplicationBuilder, string, string?)extension
IResourceBuilder<IResourceWithConnectionString>
AddParameter(IDistributedApplicationBuilder, string, bool)extension
IResourceBuilder<ParameterResource>
Adds a parameter resource to the application.
AddParameter(IDistributedApplicationBuilder, string, string, bool, bool)extension
IResourceBuilder<ParameterResource>
Adds a parameter resource to the application with a given value.
AddParameter(IDistributedApplicationBuilder, string, Func<string>, bool, bool)extension
IResourceBuilder<ParameterResource>
Adds a parameter resource to the application with a value coming from a callback function.
AddParameter(IDistributedApplicationBuilder, string, ParameterDefault, bool, bool)extension
IResourceBuilder<ParameterResource>
AddParameterFromConfiguration(IDistributedApplicationBuilder, string, string, bool)extension
IResourceBuilder<ParameterResource>
Adds a parameter resource to the application, with a value coming from configuration.
ConfigureConnectionStringManifestPublisher(IResourceBuilder<IResourceWithConnectionString>)static
Configures the manifest writer for this resource to be a parameter resource.
CreateDefaultPasswordParameter(IDistributedApplicationBuilder, string, bool, bool, bool, bool, int, int, int, int)static
Creates a default password parameter that generates a random password.
CreateGeneratedParameter(IDistributedApplicationBuilder, string, bool, GenerateParameterDefault)static
Creates a new ParameterResource that has a generated value using the parameterDefault.
CreateParameter(IDistributedApplicationBuilder, string, bool)static
Creates a new ParameterResource.
PublishAsConnectionString(IResourceBuilder<T>)extension
Changes the resource to be published as a connection string reference in the manifest.
WithCustomInput(IResourceBuilder<ParameterResource>, Func<ParameterResource, InteractionInput>)extensionexperimental
IResourceBuilder<ParameterResource>
Sets a custom input generator function for the parameter resource.
WithDescription(IResourceBuilder<ParameterResource>, string, bool)extension
IResourceBuilder<ParameterResource>
Sets the description of the parameter resource.
View all methods