2 types derived from ParameterDefault
Aspire.Hosting (1)
ApplicationModel\ParameterDefault.cs (1)
79public sealed class GenerateParameterDefault : ParameterDefault
Aspire.Hosting.Tests (1)
UserSecretsParameterDefaultTests.cs (1)
106private sealed class TestParameterDefault : ParameterDefault
15 references to ParameterDefault
Aspire.Hosting (14)
ApplicationModel\ParameterDefault.cs (2)
15/// Writes the current <see cref="ParameterDefault"/> to the manifest context. 167class ConstantParameterDefault(Func<string> valueGetter) : ParameterDefault
ApplicationModel\ParameterResource.cs (3)
13private readonly Func<ParameterDefault?, string> _valueGetter; 21public ParameterResource(string name, Func<ParameterDefault?, string> callback, bool secret = false) : base(name) 49public ParameterDefault? Default { get; set; }
ApplicationModel\UserSecretsParameterDefault.cs (4)
13/// Wraps a <see cref="ParameterDefault"/> such that the default value is saved to the project's user secrets store. 18/// <param name="parameterDefault">The <see cref="ParameterDefault"/> that will produce the default value when it isn't found in the project's user secrets store.</param> 19internal sealed class UserSecretsParameterDefault(Assembly appHostAssembly, string applicationName, string parameterName, ParameterDefault parameterDefault) 20: ParameterDefault
ParameterResourceBuilderExtensions.cs (5)
113/// <param name="value">A <see cref="ParameterDefault"/> that is used to provide the parameter value</param> 122public static IResourceBuilder<ParameterResource> AddParameter(this IDistributedApplicationBuilder builder, [ResourceName] string name, ParameterDefault value, bool secret = false, bool persist = false) 141private static string GetParameterValue(IConfiguration configuration, string name, ParameterDefault? parameterDefault, string? configurationKey = null) 151Func<ParameterDefault?, string> callback, 154ParameterDefault? parameterDefault = null,
Aspire.Hosting.Tests (1)
AddParameterTests.cs (1)
329private sealed class TestParameterDefault(string defaultValue) : ParameterDefault