ParameterResourceBuilderExtensions
Class static net10.0
Provides extension methods for adding parameter resources to an application.
namespace Aspire.Hosting;
public static class ParameterResourceBuilderExtensions{ // ...} 13 members
Methods13
Section titled MethodsAddConnectionString(IDistributedApplicationBuilder, string, string?)extensionIResourceBuilder<IResourceWithConnectionString> Adds a parameter to the distributed application but wrapped in a resource with a connection string for use with
ResourceBuilderExtensions.WithReferenceAddParameter(IDistributedApplicationBuilder, string, bool)extensionIResourceBuilder<ParameterResource> Adds a parameter resource to the application.
AddParameter(IDistributedApplicationBuilder, string, string, bool, bool)extensionIResourceBuilder<ParameterResource> Adds a parameter resource to the application with a given value.
AddParameter(IDistributedApplicationBuilder, string, Func<string>, bool, bool)extensionIResourceBuilder<ParameterResource> Adds a parameter resource to the application with a value coming from a callback function.
AddParameter(IDistributedApplicationBuilder, string, ParameterDefault, bool, bool)extensionIResourceBuilder<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)extensionIResourceBuilder<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>)extensionexperimentalIResourceBuilder<ParameterResource> Sets a custom input generator function for the parameter resource.
WithDescription(IResourceBuilder<ParameterResource>, string, bool)extensionIResourceBuilder<ParameterResource> Sets the description of the parameter resource.