7 references to DefaultAuthenticationDatabase
Aspire.Hosting.MongoDB (7)
MongoDBBuilderExtensions.cs (2)
86
databaseNameFactory: _ => mongoServerResource.Databases.Values.FirstOrDefault(defaultValue: MongoDBServerResource.
DefaultAuthenticationDatabase
),
939
var status = await _client.GetDatabase(MongoDBServerResource.
DefaultAuthenticationDatabase
)
MongoDBServerResource.cs (2)
123
private static ReferenceExpression AuthenticationDatabaseReference => ReferenceExpression.Create($"{
DefaultAuthenticationDatabase
}");
159
builder.Append($"{
DefaultAuthenticationDatabase
:uri}");
MongoDBSingleMemberReplicaSet.cs (1)
62
var database = client.GetDatabase(MongoDBServerResource.
DefaultAuthenticationDatabase
);
ReplicaSet\MongoDBReplicaSetResource.cs (2)
114
builder.Append($"{MongoDBServerResource.
DefaultAuthenticationDatabase
:uri}");
135
yield return new("AuthenticationDatabase", ReferenceExpression.Create($"{MongoDBServerResource.
DefaultAuthenticationDatabase
}"));