ParameterResource
Class net10.0
Represents a parameter resource.
namespace Aspire.Hosting.ApplicationModel;
public class ParameterResource : Aspire.Hosting.ApplicationModel.Resource, Aspire.Hosting.ApplicationModel.IManifestExpressionProvider, Aspire.Hosting.ApplicationModel.IValueProvider{ // ...} 10 members
Constructors1
Section titled ConstructorsParameterResource(string, Func<ParameterDefault?, string>, bool) Initializes a new instance of
ParameterResource. Properties7
Section titled PropertiesDefaultget; set Represents how the default value of the parameter should be retrieved.
Descriptionget; setstring? Gets a description of the parameter resource.
EnableDescriptionMarkdownget; setbool Gets or sets a value indicating whether the description should be rendered as Markdown.
IsConnectionStringget; setbool Gets or sets a value indicating whether the parameter is a connection string.
Secretgetbool Gets a value indicating whether the parameter is secret.
Valuegetobsoletestring Gets the value of the parameter.
ValueExpressiongetstring Gets the expression used in the manifest to reference the value of the parameter.
Methods2
Section titled MethodsGetValueAsync(CancellationToken)ValueTask<string?> Gets the value of the parameter asynchronously, waiting if necessary for the value to be set.
GetValueAsync(ValueProviderContext, CancellationToken)ValueTask<string?> Gets the value of the parameter asynchronously, waiting if necessary for the value to be set.