ParameterResourceBuilderExtensions
Classstaticnet10.0
Provides extension methods for adding parameter resources to an application.
namespace Aspire.Hosting;
public static class ParameterResourceBuilderExtensions{ // ...}13 members
Methods13
Section titled MethodsIResourceBuilder<IResourceWithConnectionString> Adds a parameter to the distributed application but wrapped in a resource with a connection string for use with
ResourceBuilderExtensions.WithReferenceIResourceBuilder<ParameterResource> Adds a parameter resource to the application.
IResourceBuilder<ParameterResource> Adds a parameter resource to the application with a given value.
IResourceBuilder<ParameterResource> Adds a parameter resource to the application with a value coming from a callback function.
AddParameter(IDistributedApplicationBuilder, string, ParameterDefault, bool, bool)extensionats ignoredIResourceBuilder<ParameterResource> Adds a parameter resource to the application, with a value coming from a
ParameterDefault if not supplied from configuration. AddParameterFromConfiguration(IDistributedApplicationBuilder, string, string, bool)extensionats exportIResourceBuilder<ParameterResource> Adds a parameter resource to the application, with a value coming from configuration.
Configures the manifest writer for this resource to be a parameter resource.
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. Creates a new
ParameterResource. Changes the resource to be published as a connection string reference in the manifest.
WithCustomInput(IResourceBuilder<ParameterResource>, Func<ParameterResource, InteractionInput>)extensionats ignoredIResourceBuilder<ParameterResource> Sets a custom input generator function for the parameter resource.
IResourceBuilder<ParameterResource> Sets the description of the parameter resource.