Implemented interface member:
property
Parent
Aspire.Hosting.ApplicationModel.IResourceWithParent<T>.Parent
1 write to Parent
Aspire.Hosting.MongoDB (1)
MongoDBDatabaseResource.cs (1)
22
Parent
= parent;
4 references to Parent
Aspire.Hosting.MongoDB (1)
MongoDBDatabaseResource.cs (1)
29
public ReferenceExpression ConnectionStringExpression =>
Parent
.BuildConnectionString(DatabaseName);
Aspire.Hosting.MongoDB.Tests (3)
AddMongoDBTests.cs (3)
86
var serverResource = dbResource.
Parent
as IResourceWithConnectionString;
91
Assert.Equal($"mongodb://admin:{dbResource.
Parent
.PasswordParameter?.Value}@localhost:27017?authSource=admin&authMechanism=SCRAM-SHA-256", await serverResource.GetConnectionStringAsync());
93
Assert.Equal($"mongodb://admin:{dbResource.
Parent
.PasswordParameter?.Value}@localhost:27017/mydatabase?authSource=admin&authMechanism=SCRAM-SHA-256", connectionString);