12 references to MongoDBBuilderExtensions
Aspire.Hosting.MongoDB (8)
ReplicaSet\MongoDBReplicaSetBuilderExtensions.cs (8)
74MongoDBBuilderExtensions.ThrowIfPublishMode(builder, nameof(AddMongoDBReplicaSet));
78keyFile: MongoDBBuilderExtensions.CreateReplicaSetKeyFile(builder, name),
388/// <item> <description>Configures the member's replica set name and command-line arguments without initializing a separate single-member set. Do not call <see cref="MongoDBBuilderExtensions.WithReplicaSet"/> on these members. </description></item>
389/// <item> <description><see cref="MongoDBBuilderExtensions.WithKeyFile(IResourceBuilder{MongoDBServerResource}, IExpressionValue, string)"/> to set the key file parameter on the member resource, which is required for internal authentication between replica set members. </description></item>
390/// <item> <description><see cref="MongoDBBuilderExtensions.WithTlsAllowInvalidCertificates(IResourceBuilder{MongoDBServerResource})"/> because members authenticate to each other with the same certificate they serve to clients, which does not carry a <c>clientAuth</c> extended key usage. </description></item>
402MongoDBBuilderExtensions.ThrowIfPublishMode(builder.ApplicationBuilder, nameof(WithMember));
432$"The MongoDB server resource '{member.Resource.Name}' was given a key file of its own, which conflicts with the one shared by the members of the replica set '{builder.Resource.Name}'. Members are given the replica set's key file automatically, so remove the '{nameof(MongoDBBuilderExtensions.WithKeyFile)}' call on the member.");
455MongoDBBuilderExtensions.ConfigureReplicaSetMember(member, builder.Resource.Name);
Aspire.Hosting.MongoDB.Tests (4)