Implemented interface member:
property
Parent
Aspire.Hosting.ApplicationModel.IResourceWithParent<T>.Parent
1 write to Parent
Aspire.Hosting.MongoDB (1)
MongoDBDatabaseResource.cs (1)
22Parent = parent;
4 references to Parent
Aspire.Hosting.MongoDB (1)
MongoDBDatabaseResource.cs (1)
29public ReferenceExpression ConnectionStringExpression => Parent.BuildConnectionString(DatabaseName);
Aspire.Hosting.MongoDB.Tests (3)
AddMongoDBTests.cs (3)
86var serverResource = dbResource.Parent as IResourceWithConnectionString; 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);