30 references to Value
Aspire.Hosting (2)
ApplicationModel\ParameterResource.cs (1)
66ValueTask<string?> IValueProvider.GetValueAsync(CancellationToken cancellationToken) => new(Value);
ParameterResourceBuilderExtensions.cs (1)
176state = state with { Properties = [.. state.Properties, new("Value", resource.Value) { IsSensitive = secret }] };
Aspire.Hosting.Elasticsearch.Tests (2)
AddElasticsearchTests.cs (1)
152Assert.Equal($"http://elastic:{elasticsearch.Resource.PasswordParameter.Value}@localhost:27020", connectionString);
ElasticsearchFunctionalTests.cs (1)
85var password = elasticsearch1.Resource.PasswordParameter.Value;
Aspire.Hosting.Milvus.Tests (1)
MilvusFunctionalTests.cs (1)
81var password = milvus1.Resource.ApiKeyParameter.Value;
Aspire.Hosting.MongoDB.Tests (3)
AddMongoDBTests.cs (2)
91Assert.Equal($"mongodb://admin:{dbResource.Parent.PasswordParameter?.Value}@localhost:27017?authSource=admin&authMechanism=SCRAM-SHA-256", await serverResource.GetConnectionStringAsync()); 93Assert.Equal($"mongodb://admin:{dbResource.Parent.PasswordParameter?.Value}@localhost:27017/mydatabase?authSource=admin&authMechanism=SCRAM-SHA-256", connectionString);
MongoDbFunctionalTests.cs (1)
124var password = mongodb1.Resource.PasswordParameter!.Value;
Aspire.Hosting.MySql (2)
MySqlBuilderExtensions.cs (2)
137context.EnvironmentVariables.Add("PMA_PASSWORD", singleInstance.PasswordParameter.Value); 162writer.WriteLine($"$cfg['Servers'][$i]['password'] = '{mySqlInstance.PasswordParameter.Value}';");
Aspire.Hosting.MySql.Tests (1)
MySqlFunctionalTests.cs (1)
135var password = mysql1.Resource.PasswordParameter.Value;
Aspire.Hosting.Nats.Tests (4)
AddNatsTests.cs (4)
43Assert.False(string.IsNullOrEmpty(nats.Resource.PasswordParameter!.Value)); 54Assert.Equal($"nats://nats:{natsResource.PasswordParameter?.Value}@localhost:4222", connectionString); 71Assert.Equal("usr", nats.Resource.UserNameParameter!.Value); 72Assert.Equal("password", nats.Resource.PasswordParameter!.Value);
Aspire.Hosting.Oracle.Tests (1)
OracleFunctionalTests.cs (1)
99var password = oracle1.Resource.PasswordParameter.Value;
Aspire.Hosting.PostgreSQL (2)
PostgresBuilderExtensions.cs (2)
191writer.WriteString("Username", postgresInstance.UserNameParameter?.Value ?? "postgres"); 194writer.WriteString("PasswordExecCommand", $"echo '{postgresInstance.PasswordParameter.Value}'"); // HACK: Generating a pass file and playing around with chmod is too painful.
Aspire.Hosting.PostgreSQL.Tests (5)
AddPostgresTests.cs (5)
163Assert.Equal($"Host=localhost;Port=2000;Username=postgres;Password={postgres.Resource.PasswordParameter.Value}", connectionString); 483Assert.Equal($"echo '{pg1.Resource.PasswordParameter.Value}'", servers.GetProperty("1").GetProperty("PasswordExecCommand").GetString()); 493Assert.Equal($"echo '{pg2.Resource.PasswordParameter.Value}'", servers.GetProperty("2").GetProperty("PasswordExecCommand").GetString()); 609var user = postgresDatabase.Parent.UserNameParameter?.Value ?? "postgres"; 617password = "{postgresDatabase.Parent.PasswordParameter.Value}"
Aspire.Hosting.RabbitMQ.Tests (1)
RabbitMQFunctionalTests.cs (1)
111var password = rabbitMQ1.Resource.PasswordParameter.Value;
Aspire.Hosting.SqlServer.Tests (1)
SqlServerFunctionalTests.cs (1)
140var password = sqlserver1.Resource.PasswordParameter.Value;
Aspire.Hosting.Tests (5)
AddParameterTests.cs (5)
113Assert.Equal("ValueFromConfiguration", parameterResource.Value); 148Assert.Equal($"DefaultValue", parameterResource.Value); 198Assert.Equal($"DefaultValue", parameterResource.Value); 256Assert.Equal(10, parameterResource.Value.Length); 311Assert.Equal($"MyAccessToken", parameterResource.Value);