MongoDBReplicaSetResource
Classsealednet10.0
Represents a MongoDB replica set resource in the application model. A replica set is a group of MongoDB servers that maintain the same data set, providing redundancy and high availability.
namespace Aspire.Hosting.ApplicationModel;
public sealed class MongoDBReplicaSetResource : Aspire.Hosting.ApplicationModel.Resource, Aspire.Hosting.ApplicationModel.IExpressionValue, Aspire.Hosting.ApplicationModel.IManifestExpressionProvider, Aspire.Hosting.ApplicationModel.IResource, Aspire.Hosting.ApplicationModel.IResourceWithConnectionString, Aspire.Hosting.ApplicationModel.IResourceWithWaitSupport, Aspire.Hosting.ApplicationModel.IValueProvider, Aspire.Hosting.ApplicationModel.IValueWithReferences{ // ...}ResourceIExpressionValueIManifestExpressionProviderIResourceIResourceWithConnectionStringIResourceWithWaitSupportIValueProviderIValueWithReferences
7 members
Remarks
Section titled Remarks This resource is a logical grouping of multiple
MongoDBServerResource instances that are configured as members of the same replica set. Constructors1
Section titled Constructors Represents a MongoDB replica set resource in the application model. A replica set is a group of MongoDB servers that maintain the same data set, providing redundancy and high availability.
Properties6
Section titled PropertiesReferenceExpression Gets the combined connection string for the MongoDB replica set, which includes the endpoints of all members, interpretable by the MongoDB driver.
Membersget Gets the MongoDB server resources that are members of this replica set, in the order they were added.