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
16 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;
22
public ParameterResource(string name, Func<
ParameterDefault
?, string> callback, bool secret = false) : base(name)
50
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
ConnectionStringParameterResource.cs (1)
12
public ConnectionStringParameterResource(string name, Func<
ParameterDefault
?, string> callback, string? environmentVariableName) : base(name, callback, secret: true)
ParameterResourceBuilderExtensions.cs (4)
118
/// Adds a parameter resource to the application, with a value coming from a <see cref="
ParameterDefault
"/> if not supplied from configuration.
122
/// <param name="value">A <see cref="
ParameterDefault
"/> that is used to provide the parameter value if a value is not present in configuration</param>
131
public static IResourceBuilder<ParameterResource> AddParameter(this IDistributedApplicationBuilder builder, [ResourceName] string name,
ParameterDefault
value, bool secret = false, bool persist = false)
150
private static string GetParameterValue(ConfigurationManager configuration, string name,
ParameterDefault
? parameterDefault, string? configurationKey = null)
Aspire.Hosting.Qdrant.Tests (1)
QdrantPublicApiTests.cs (1)
114
var apiKey = new ParameterResource(key, (
ParameterDefault
? parameterDefault) => key);
Aspire.Hosting.Tests (1)
AddParameterTests.cs (1)
354
private sealed class TestParameterDefault(string defaultValue) :
ParameterDefault