3 instantiations of ParameterResource
Aspire.Hosting (2)
Aspire.Hosting.Milvus.Tests (1)
159 references to ParameterResource
Aspire.Hosting (29)
ContainerResourceBuilderExtensions.cs (7)
494/// Thrown when <see cref="ContainerResourceBuilderExtensions.WithBuildArg{T}(IResourceBuilder{T}, string, IResourceBuilder{ParameterResource})"/> is
499/// The <see cref="ContainerResourceBuilderExtensions.WithBuildArg{T}(IResourceBuilder{T}, string, IResourceBuilder{ParameterResource})"/> extension method
518public static IResourceBuilder<T> WithBuildArg<T>(this IResourceBuilder<T> builder, string name, IResourceBuilder<ParameterResource> value) where T : ContainerResource
541/// Thrown when <see cref="ContainerResourceBuilderExtensions.WithBuildSecret{T}(IResourceBuilder{T}, string, IResourceBuilder{ParameterResource})"/> is
546/// The <see cref="ContainerResourceBuilderExtensions.WithBuildSecret{T}(IResourceBuilder{T}, string, IResourceBuilder{ParameterResource})"/> extension method
548/// variable-based secret being passed to the build process. The value of the environment variable is the value of the secret referenced by the <see cref="ParameterResource"/>.
565public static IResourceBuilder<T> WithBuildSecret<T>(this IResourceBuilder<T> builder, string name, IResourceBuilder<ParameterResource> value) where T : ContainerResource
ParameterResourceBuilderExtensions.cs (14)
25public static IResourceBuilder<ParameterResource> AddParameter(this IDistributedApplicationBuilder builder, [ResourceName] string name, bool secret = false)
45public static IResourceBuilder<ParameterResource> AddParameter(this IDistributedApplicationBuilder builder, [ResourceName] string name, string value, bool publishValueAsDefault = false, bool secret = false)
66public static IResourceBuilder<ParameterResource> AddParameter(this IDistributedApplicationBuilder builder, string name, Func<string> valueGetter, bool publishValueAsDefault = false, bool secret = false)
95public static IResourceBuilder<ParameterResource> AddParameterFromConfiguration(this IDistributedApplicationBuilder builder, string name, string configurationKey, bool secret = false)
122public static IResourceBuilder<ParameterResource> AddParameter(this IDistributedApplicationBuilder builder, [ResourceName] string name, ParameterDefault value, bool secret = false, bool persist = false)
149internal static IResourceBuilder<ParameterResource> AddParameter(this IDistributedApplicationBuilder builder,
157var resource = new ParameterResource(name, callback, secret);
257var parameter = new ParameterResource(builder.Resource.Name, _ => "", secret: true);
276/// <returns>The created <see cref="ParameterResource"/>.</returns>
281public static ParameterResource CreateDefaultPasswordParameter(
306/// Creates a new <see cref="ParameterResource"/> that has a generated value using the <paramref name="parameterDefault"/>.
315/// <returns>The created <see cref="ParameterResource"/>.</returns>
316public static ParameterResource CreateGeneratedParameter(
322var parameterResource = new ParameterResource(name, defaultValue => GetParameterValue(builder.Configuration, name, defaultValue), secret)
Aspire.Hosting.Azure (6)
Aspire.Hosting.Azure.AppContainers (11)
ContainerAppExtensions.cs (10)
26/// <para>The <see cref="ConfigureCustomDomain(ContainerApp, IResourceBuilder{ParameterResource}, IResourceBuilder{ParameterResource})"/> extension method
28/// <para>The <see cref="ConfigureCustomDomain(ContainerApp, IResourceBuilder{ParameterResource}, IResourceBuilder{ParameterResource})"/> method is used
31/// <para>The <see cref="ConfigureCustomDomain(ContainerApp, IResourceBuilder{ParameterResource}, IResourceBuilder{ParameterResource})"/> method takes
43/// passing them to the <see cref="ConfigureCustomDomain(ContainerApp, IResourceBuilder{ParameterResource}, IResourceBuilder{ParameterResource})"/>
58public static void ConfigureCustomDomain(this ContainerApp app, IResourceBuilder<ParameterResource> customDomain, IResourceBuilder<ParameterResource> certificateName)
Aspire.Hosting.Azure.PostgreSQL (6)
Aspire.Hosting.Elasticsearch (4)
Aspire.Hosting.Elasticsearch.Tests (1)
Aspire.Hosting.Keycloak (7)
Aspire.Hosting.Keycloak.Tests (3)
Aspire.Hosting.Milvus (5)
Aspire.Hosting.Milvus.Tests (3)
Aspire.Hosting.MongoDB (7)
Aspire.Hosting.MySql (4)
Aspire.Hosting.MySql.Tests (2)
Aspire.Hosting.Nats (7)
Aspire.Hosting.Oracle (4)
Aspire.Hosting.Orleans (2)
Aspire.Hosting.PostgreSQL (7)
Aspire.Hosting.PostgreSQL.Tests (5)
Aspire.Hosting.Qdrant (5)
Aspire.Hosting.Qdrant.Tests (2)
Aspire.Hosting.RabbitMQ (7)
Aspire.Hosting.RabbitMQ.Tests (2)
Aspire.Hosting.SqlServer (4)
Aspire.Hosting.SqlServer.Tests (6)
SqlServerPublicApiTests.cs (6)
116var password = ParameterResourceBuilderExtensions.CreateDefaultPasswordParameter(distributedApplicationBuilder, key, special: false);
131var password = ParameterResourceBuilderExtensions.CreateDefaultPasswordParameter(distributedApplicationBuilder, "password", special: false);
146var password = ParameterResourceBuilderExtensions.CreateDefaultPasswordParameter(distributedApplicationBuilder, "password", special: false);
161var password = ParameterResourceBuilderExtensions.CreateDefaultPasswordParameter(distributedApplicationBuilder, "password", special: false);
176var password = ParameterResourceBuilderExtensions.CreateDefaultPasswordParameter(distributedApplicationBuilder, "password", special: false);
191var password = ParameterResourceBuilderExtensions.CreateDefaultPasswordParameter(distributedApplicationBuilder, "password", special: false);
Aspire.Hosting.Tests (18)
Aspire.Playground.Tests (2)