ParameterResource
Classnet10.0
Represents a parameter resource.
namespace Aspire.Hosting.ApplicationModel;
public class ParameterResource : Aspire.Hosting.ApplicationModel.Resource, Aspire.Hosting.ApplicationModel.IExpressionValue, Aspire.Hosting.ApplicationModel.IManifestExpressionProvider, Aspire.Hosting.ApplicationModel.IValueProvider{ // ...}16 members
Constructors1
Section titled Constructors Initializes a new instance of
ParameterResource . Properties8
Section titled PropertiesDefaultget; set Represents how the default value of the parameter should be retrieved.
EnableDescriptionMarkdown get; setbool Gets or sets a value indicating whether the description should be rendered as Markdown.
IsConnectionString get; setbool Gets or sets a value indicating whether the parameter is a connection string.
Requiredgetbool Gets a value indicating whether this parameter must have a value before it can be resolved.
string Gets the expression used in the manifest to reference the value of the parameter.
Methods7
Section titled MethodsValueTask<string?> Gets the value of the parameter asynchronously, waiting if necessary for the value to be set.
ValueTask<string?> Gets the value of the parameter asynchronously, waiting if necessary for the value to be set.
Task Sets or replaces the exception for this parameter.
Task Sets or replaces the value for this parameter.
TryGetCurrentValue(string?) ats ignoredbool Attempts to get the current value for this parameter without waiting for unresolved input.