2 types derived from ParameterDefault
Aspire.Hosting (1)
ApplicationModel\ParameterDefault.cs (1)
79
public sealed class GenerateParameterDefault :
ParameterDefault
Aspire.Hosting.Tests (1)
UserSecretsParameterDefaultTests.cs (1)
106
private 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.
167
class ConstantParameterDefault(Func<string> valueGetter) :
ParameterDefault
ApplicationModel\ParameterResource.cs (3)
13
private readonly Func<
ParameterDefault
?, string> _valueGetter;
21
public ParameterResource(string name, Func<
ParameterDefault
?, string> callback, bool secret = false) : base(name)
49
public
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>
19
internal 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>
122
public static IResourceBuilder<ParameterResource> AddParameter(this IDistributedApplicationBuilder builder, [ResourceName] string name,
ParameterDefault
value, bool secret = false, bool persist = false)
141
private static string GetParameterValue(IConfiguration configuration, string name,
ParameterDefault
? parameterDefault, string? configurationKey = null)
151
Func<
ParameterDefault
?, string> callback,
154
ParameterDefault
? parameterDefault = null,
Aspire.Hosting.Tests (1)
AddParameterTests.cs (1)
329
private sealed class TestParameterDefault(string defaultValue) :
ParameterDefault