Implemented interface member:
method
GetValueAsync
Aspire.Hosting.ApplicationModel.IValueProvider.GetValueAsync(System.Threading.CancellationToken)
70 references to GetValueAsync
Aspire.Hosting (1)
ApplicationModel\IResourceWithConnectionString.cs (1)
17
ConnectionStringExpression.
GetValueAsync
(cancellationToken);
Aspire.Hosting.Azure.Tests (15)
AzureBicepResourceTests.cs (2)
232
var cs = await csExpr.
GetValueAsync
(CancellationToken.None);
435
Assert.Equal("https://myendpoint", await appConfig.Resource.ConnectionStringExpression.
GetValueAsync
(default));
AzureCosmosDBEmulatorFunctionalTests.cs (1)
93
hb.Configuration[$"ConnectionStrings:{db.Resource.Name}"] = await db.Resource.ConnectionStringExpression.
GetValueAsync
(default);
AzureEventHubsExtensionsTests.cs (1)
78
hb.Configuration["ConnectionStrings:eventhubns"] = await eventHub.Resource.ConnectionStringExpression.
GetValueAsync
(CancellationToken.None);
AzurePostgresExtensionsTests.cs (6)
281
Assert.StartsWith("Host=localhost;Port=12455;Username=postgres;Password=", await postgres.Resource.ConnectionStringExpression.
GetValueAsync
(CancellationToken.None));
283
var db1ConnectionString = await db1.Resource.ConnectionStringExpression.
GetValueAsync
(CancellationToken.None);
287
var db2ConnectionString = await db2.Resource.ConnectionStringExpression.
GetValueAsync
(CancellationToken.None);
322
Assert.Equal("Host=localhost;Port=12455;Username=user;Password=p@ssw0rd1", await postgres.Resource.ConnectionStringExpression.
GetValueAsync
(CancellationToken.None));
323
Assert.Equal("Host=localhost;Port=12455;Username=user;Password=p@ssw0rd1;Database=db1", await db1.Resource.ConnectionStringExpression.
GetValueAsync
(CancellationToken.None));
324
Assert.Equal("Host=localhost;Port=12455;Username=user;Password=p@ssw0rd1;Database=db2Name", await db2.Resource.ConnectionStringExpression.
GetValueAsync
(CancellationToken.None));
AzureRedisExtensionsTests.cs (1)
154
Assert.Equal("localhost:12455", await redis.Resource.ConnectionStringExpression.
GetValueAsync
(CancellationToken.None));
AzureSqlExtensionsTests.cs (3)
162
var serverConnectionString = await sql.Resource.ConnectionStringExpression.
GetValueAsync
(CancellationToken.None);
166
var db1ConnectionString = await db1.Resource.ConnectionStringExpression.
GetValueAsync
(CancellationToken.None);
170
var db2ConnectionString = await db2.Resource.ConnectionStringExpression.
GetValueAsync
(CancellationToken.None);
AzureStorageEmulatorFunctionalTests.cs (1)
78
hb.Configuration["ConnectionStrings:BlobConnection"] = await storage.Resource.ConnectionStringExpression.
GetValueAsync
(CancellationToken.None);
Aspire.Hosting.Elasticsearch (1)
ElasticsearchBuilderExtensions.cs (1)
63
connectionString = await elasticsearch.ConnectionStringExpression.
GetValueAsync
(ct).ConfigureAwait(false);
Aspire.Hosting.Elasticsearch.Tests (3)
ElasticsearchFunctionalTests.cs (3)
47
hb.Configuration[$"ConnectionStrings:{elasticsearch.Resource.Name}"] = await elasticsearch.Resource.ConnectionStringExpression.
GetValueAsync
(default);
110
hb.Configuration[$"ConnectionStrings:{elasticsearch1.Resource.Name}"] = await elasticsearch1.Resource.ConnectionStringExpression.
GetValueAsync
(default);
155
hb.Configuration[$"ConnectionStrings:{elasticsearch2.Resource.Name}"] = await elasticsearch2.Resource.ConnectionStringExpression.
GetValueAsync
(default);
Aspire.Hosting.Garnet.Tests (3)
GarnetFunctionalTests.cs (3)
78
hb.Configuration[$"ConnectionStrings:{garnet.Resource.Name}"] = await garnet.Resource.ConnectionStringExpression.
GetValueAsync
(default);
157
hb.Configuration[$"ConnectionStrings:{garnet1.Resource.Name}"] = $"{await garnet1.Resource.ConnectionStringExpression.
GetValueAsync
(default)}";
208
hb.Configuration[$"ConnectionStrings:{garnet2.Resource.Name}"] = $"{await garnet2.Resource.ConnectionStringExpression.
GetValueAsync
(default)}";
Aspire.Hosting.Kafka.Tests (3)
KafkaFunctionalTests.cs (3)
76
hb.Configuration[$"ConnectionStrings:{kafka.Resource.Name}"] = await kafka.Resource.ConnectionStringExpression.
GetValueAsync
(default);
169
hb.Configuration[$"ConnectionStrings:{kafka1.Resource.Name}"] = await kafka1.Resource.ConnectionStringExpression.
GetValueAsync
(default);
221
hb.Configuration[$"ConnectionStrings:{kafka2.Resource.Name}"] = await kafka2.Resource.ConnectionStringExpression.
GetValueAsync
(default);
Aspire.Hosting.Milvus.Tests (3)
MilvusFunctionalTests.cs (3)
36
hb.Configuration[$"ConnectionStrings:{db.Resource.Name}"] = await db.Resource.ConnectionStringExpression.
GetValueAsync
(default);
110
hb.Configuration[$"ConnectionStrings:{db1.Resource.Name}"] = await db1.Resource.ConnectionStringExpression.
GetValueAsync
(default);
158
hb.Configuration[$"ConnectionStrings:{db2.Resource.Name}"] = await db2.Resource.ConnectionStringExpression.
GetValueAsync
(default);
Aspire.Hosting.MongoDB (1)
MongoDBBuilderExtensions.cs (1)
111
connectionString = await mongoDBDatabase.ConnectionStringExpression.
GetValueAsync
(ct).ConfigureAwait(false);
Aspire.Hosting.MongoDB.Tests (4)
MongoDbFunctionalTests.cs (4)
89
hb.Configuration[$"ConnectionStrings:{db.Resource.Name}"] = await db.Resource.ConnectionStringExpression.
GetValueAsync
(default);
149
hb.Configuration[$"ConnectionStrings:{db1.Resource.Name}"] = await db1.Resource.ConnectionStringExpression.
GetValueAsync
(default);
196
hb.Configuration[$"ConnectionStrings:{db2.Resource.Name}"] = await db2.Resource.ConnectionStringExpression.
GetValueAsync
(default);
317
hb.Configuration[$"ConnectionStrings:{db.Resource.Name}"] = await db.Resource.ConnectionStringExpression.
GetValueAsync
(default);
Aspire.Hosting.MySql (1)
MySqlBuilderExtensions.cs (1)
42
connectionString = await resource.ConnectionStringExpression.
GetValueAsync
(ct).ConfigureAwait(false);
Aspire.Hosting.MySql.Tests (5)
MySqlFunctionalTests.cs (5)
93
[$"ConnectionStrings:{db.Resource.Name}"] = await db.Resource.ConnectionStringExpression.
GetValueAsync
(default)
166
[$"ConnectionStrings:{db1.Resource.Name}"] = await db1.Resource.ConnectionStringExpression.
GetValueAsync
(default)
236
[$"ConnectionStrings:{db2.Resource.Name}"] = await db2.Resource.ConnectionStringExpression.
GetValueAsync
(default)
342
[$"ConnectionStrings:{db.Resource.Name}"] = await db.Resource.ConnectionStringExpression.
GetValueAsync
(default)
412
[$"ConnectionStrings:{db.Resource.Name}"] = await db.Resource.ConnectionStringExpression.
GetValueAsync
(default)
Aspire.Hosting.Nats.Tests (5)
NatsFunctionalTests.cs (5)
41
hb.Configuration[$"ConnectionStrings:{nats.Resource.Name}"] = await nats.Resource.ConnectionStringExpression.
GetValueAsync
(default);
86
var connectionString = await nats.Resource.ConnectionStringExpression.
GetValueAsync
(default);
130
var connectionString = await nats.Resource.ConnectionStringExpression.
GetValueAsync
(default);
192
hb.Configuration[$"ConnectionStrings:{nats1.Resource.Name}"] = await nats1.Resource.ConnectionStringExpression.
GetValueAsync
(default);
240
hb.Configuration[$"ConnectionStrings:{nats2.Resource.Name}"] = await nats2.Resource.ConnectionStringExpression.
GetValueAsync
(default);
Aspire.Hosting.Oracle (1)
OracleDatabaseBuilderExtensions.cs (1)
38
connectionString = await oracleDatabaseServer.ConnectionStringExpression.
GetValueAsync
(ct).ConfigureAwait(false);
Aspire.Hosting.Oracle.Tests (4)
OracleFunctionalTests.cs (4)
52
hb.Configuration[$"ConnectionStrings:{db.Resource.Name}"] = await db.Resource.ConnectionStringExpression.
GetValueAsync
(default);
135
hb.Configuration[$"ConnectionStrings:{db1.Resource.Name}"] = await db1.Resource.ConnectionStringExpression.
GetValueAsync
(default);
196
hb.Configuration[$"ConnectionStrings:{db2.Resource.Name}"] = await db2.Resource.ConnectionStringExpression.
GetValueAsync
(default);
310
hb.Configuration[$"ConnectionStrings:{db.Resource.Name}"] = await db.Resource.ConnectionStringExpression.
GetValueAsync
(default);
Aspire.Hosting.PostgreSQL (1)
PostgresServerResource.cs (1)
84
return ConnectionStringExpression.
GetValueAsync
(cancellationToken);
Aspire.Hosting.PostgreSQL.Tests (4)
PostgresFunctionalTests.cs (4)
123
[$"ConnectionStrings:{db.Resource.Name}"] = await db.Resource.ConnectionStringExpression.
GetValueAsync
(default)
239
[$"ConnectionStrings:{db1.Resource.Name}"] = await db1.Resource.ConnectionStringExpression.
GetValueAsync
(default)
300
[$"ConnectionStrings:{db2.Resource.Name}"] = await db2.Resource.ConnectionStringExpression.
GetValueAsync
(default)
392
[$"ConnectionStrings:{db.Resource.Name}"] = await db.Resource.ConnectionStringExpression.
GetValueAsync
(default)
Aspire.Hosting.Qdrant (1)
QdrantBuilderExtensions.cs (1)
55
var connectionString = await qdrant.ConnectionStringExpression.
GetValueAsync
(ct).ConfigureAwait(false)
Aspire.Hosting.Qdrant.Tests (3)
QdrantFunctionalTests.cs (3)
46
[$"ConnectionStrings:{qdrant.Resource.Name}"] = await qdrant.Resource.ConnectionStringExpression.
GetValueAsync
(default)
130
[$"ConnectionStrings:{qdrant1.Resource.Name}"] = await qdrant1.Resource.ConnectionStringExpression.
GetValueAsync
(default)
175
[$"ConnectionStrings:{qdrant2.Resource.Name}"] = await qdrant2.Resource.ConnectionStringExpression.
GetValueAsync
(default)
Aspire.Hosting.RabbitMQ (1)
RabbitMQBuilderExtensions.cs (1)
46
connectionString = await rabbitMq.ConnectionStringExpression.
GetValueAsync
(ct).ConfigureAwait(false);
Aspire.Hosting.RabbitMQ.Tests (3)
RabbitMQFunctionalTests.cs (3)
74
hb.Configuration[$"ConnectionStrings:{rabbitMQ.Resource.Name}"] = await rabbitMQ.Resource.ConnectionStringExpression.
GetValueAsync
(default);
134
hb.Configuration[$"ConnectionStrings:{rabbitMQ1.Resource.Name}"] = await rabbitMQ1.Resource.ConnectionStringExpression.
GetValueAsync
(default);
191
hb.Configuration[$"ConnectionStrings:{rabbitMQ2.Resource.Name}"] = await rabbitMQ2.Resource.ConnectionStringExpression.
GetValueAsync
(default);
Aspire.Hosting.SqlServer (1)
SqlServerServerResource.cs (1)
68
return ConnectionString.
GetValueAsync
(cancellationToken);
Aspire.Hosting.SqlServer.Tests (3)
SqlServerFunctionalTests.cs (3)
81
hb.Configuration[$"ConnectionStrings:{tempDb.Resource.Name}"] = await tempDb.Resource.ConnectionStringExpression.
GetValueAsync
(default);
185
[$"ConnectionStrings:{masterdb1.Resource.Name}"] = await masterdb1.Resource.ConnectionStringExpression.
GetValueAsync
(default),
267
[$"ConnectionStrings:{masterdb2.Resource.Name}"] = await masterdb2.Resource.ConnectionStringExpression.
GetValueAsync
(default),
Aspire.Hosting.Valkey.Tests (3)
ValkeyFunctionalTests.cs (3)
36
[$"ConnectionStrings:{valkey.Resource.Name}"] = await valkey.Resource.ConnectionStringExpression.
GetValueAsync
(default)
97
[$"ConnectionStrings:{valkey1.Resource.Name}"] = $"{await valkey1.Resource.ConnectionStringExpression.
GetValueAsync
(default)},allowAdmin=true"
148
[$"ConnectionStrings:{valkey2.Resource.Name}"] = await valkey2.Resource.ConnectionStringExpression.
GetValueAsync
(default)