Implemented interface member:
property
ConnectionStringExpression
Aspire.Hosting.ApplicationModel.IResourceWithConnectionString.ConnectionStringExpression
9 references to ConnectionStringExpression
Aspire.Hosting.MongoDB (1)
MongoDBBuilderExtensions.cs (1)
111
connectionString = await mongoDBDatabase.
ConnectionStringExpression
.GetValueAsync(ct).ConfigureAwait(false);
Aspire.Hosting.MongoDB.Tests (8)
AddMongoDBTests.cs (4)
265
Assert.Equal("mongodb://admin:{mongo1-password.value}@{mongo1.bindings.tcp.host}:{mongo1.bindings.tcp.port}/customers1?authSource=admin&authMechanism=SCRAM-SHA-256", db1.Resource.
ConnectionStringExpression
.ValueExpression);
266
Assert.Equal("mongodb://admin:{mongo1-password.value}@{mongo1.bindings.tcp.host}:{mongo1.bindings.tcp.port}/customers2?authSource=admin&authMechanism=SCRAM-SHA-256", db2.Resource.
ConnectionStringExpression
.ValueExpression);
283
Assert.Equal("mongodb://admin:{mongo1-password.value}@{mongo1.bindings.tcp.host}:{mongo1.bindings.tcp.port}/imports?authSource=admin&authMechanism=SCRAM-SHA-256", db1.Resource.
ConnectionStringExpression
.ValueExpression);
284
Assert.Equal("mongodb://admin:{mongo2-password.value}@{mongo2.bindings.tcp.host}:{mongo2.bindings.tcp.port}/imports?authSource=admin&authMechanism=SCRAM-SHA-256", db2.Resource.
ConnectionStringExpression
.ValueExpression);
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);